
/* ==========================================================================
   Base styles and variables
   ========================================================================== */
:root {
  /* Color palette */
  --primary-color: #2e7d32;
  --primary-light: #60ad5e;
  --primary-dark: #005005;
  --secondary-color: #81c784;
  --light-color: #f1f8e9;
  --dark-color: #1b5e20;
  --light-color: #f1f8e9;
  --text-color: #212121;
  --text-light: #757575;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 3rem;
  
  /* Breakpoints */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ==========================================================================
   Base styles
   ========================================================================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  margin-top: 80px; /* Add space for fixed navbar */
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, .h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

h2, .h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h3, .h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h4, .h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

h5, .h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

h6, .h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  padding: 1rem 0;
  transition: var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand img {
  height: 60px;
  transition: var(--transition-normal);
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

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

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

/* ==========================================================================
   Section styling
   ========================================================================== */
.section {
  padding: var(--space-5) 0;
}

.section-title {
  position: relative;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}


.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   Hero section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.floating-image-container {
  position: relative;
  transform: perspective(1000px) rotateY(-15deg);
  transition: transform 1s ease;
}

.floating-image-container:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
  border: 10px solid var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
}

.hero-background-element {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background: url('../images/background.png') repeat;
  opacity: 0.3;
  border-radius: 10px;
  z-index: -1;
  transform: rotate(-5deg) scale(1.1);
}

/* ==========================================================================
   Category cards
   ========================================================================== */
.category-card {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover .category-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.category-title {
  color: var(--white);
  font-weight: 600;
  text-align: center;
  padding: 0 var(--space-3);
}

/* ==========================================================================
   Testimonial cards
   ========================================================================== */
.testimonial-card {
  padding: var(--space-4);
  margin: 0 var(--space-3);
  border-radius: 12px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-3);
}

.testimonial-text {
  font-style: italic;
  margin-top: var(--space-3);
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 60px;
  color: rgba(0, 0, 0, 0.1);
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: serif;
}

.testimonial-author {
  font-weight: 600;
  margin-top: var(--space-3);
}

/* ==========================================================================
   Product cards
   ========================================================================== */
.product-card {
  transition: var(--transition-normal);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.product-image {
  height: 220px;
  object-fit: cover;
}

.product-title {
  font-weight: 600;
  margin-top: var(--space-2);
}

.product-price {
  font-weight: 700;
  color: var(--primary-color);
  margin-top: var(--space-1);
}

.product-category {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Product filtering and display styles */
.tag-filter.active {
  background-color: var(--bs-secondary) !important;
  color: white !important;
  border-color: var(--bs-secondary) !important;
}

.quantity-control .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

.product-item {
  transition: all 0.3s ease;
}

.list-view .product-item .card {
  flex-direction: row;
}

.list-view .product-item .card-img-top {
  width: 200px;
  height: 100%;
  object-fit: cover;
}

.list-view .product-item .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Benefit cards
   ========================================================================== */
.benefit-card {
  padding: var(--space-4);
  border-radius: 12px;
  transition: var(--transition-normal);
  border: 1px solid var(--gray-300);
  text-align: center;
  height: 100%;
}

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

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--space-3);
}

.benefit-title {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   Company background section
   ========================================================================== */
.company-background {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) 0;
}

.company-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background.png') repeat;
  opacity: 0.2;
  z-index: -1;
}

.company-stat {
  padding: var(--space-3);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
  height: 100%;
}

.company-stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-title {
  font-weight: 600;
  margin-top: var(--space-2);
}

/* ==========================================================================
   Background patterns and accents
   ========================================================================== */

.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background.png') repeat;
  opacity: 0.15;
  z-index: -1;
}

.bg-accent {
  position: relative;
  overflow: hidden;
}

.bg-accent::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: url('../images/background.png') repeat;
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.bg-accent.accent-top-right::after {
  top: -150px;
  right: -150px;
}

.bg-accent.accent-bottom-left::after {
  bottom: -150px;
  left: -150px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate__fadeIn {
  animation: fadeIn 1s forwards;
}

.animate__fadeInUp {
  animation: fadeInUp 1s forwards;
}

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

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-5) 0 var(--space-3);
}

.footer h5 {
  color: var(--white);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: var(--space-2);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition-normal);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-3);
  margin-top: var(--space-4);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.grayscale {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-normal);
}

.grayscale:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.section-divider {
  padding: var(--space-3) 0;
}

.divider-line {
  height: 3px;
  background: url('../images/background.png') repeat;
  opacity: 0.3;
  border-radius: 3px;
}

/* ==========================================================================
   Background effects
   ========================================================================== */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('../images/background.png') repeat;
  opacity: 0.15;
  animation: animatedBackground 500s linear infinite;
}

@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 10000px 10000px;
  }
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 100%);
}

/* ==========================================================================
   Page transitions
   ========================================================================== */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.page-transition-overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}

/* ==========================================================================
   Responsive styles
   ========================================================================== */
@media (max-width: 1199.98px) {
  html {
    font-size: 15px;
  }
  
  .navbar-brand img {
    height: 55px;
  }
}

@media (max-width: 991.98px) {
  html {
    font-size: 15px;
  }
  
  h1, .h1 {
    font-size: 2.2rem;
  }
  
  h2, .h2 {
    font-size: 1.8rem;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .floating-image-container {
    transform: perspective(1000px) rotateY(-10deg);
  }
  
  .min-vh-75 {
    min-height: 60vh;
  }
  
  .hero-background-element {
    transform: rotate(-3deg) scale(1.05);
  }
  
  /* Fix for list view on tablets */
  .list-view .product-item .card {
    flex-direction: column;
  }
  
  .list-view .product-item .card-img-top {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
  
  body {
    margin-top: 60px; /* Adjust for smaller navbar on mobile */
  }
  
  h1, .h1 {
    font-size: 1.8rem;
    margin-bottom: var(--space-3);
  }
  
  
  h2, .h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
  }
  
  h3, .h3 {
    font-size: 1.3rem;
  }
  
  .section {
    padding: var(--space-4) 0;
  }
  
  .navbar-brand img {
    height: 40px;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: var(--space-3);
    border-radius: 0.25rem;
    box-shadow: var(--shadow-md);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .min-vh-75 {
    min-height: 50vh;
  }
  
  .floating-image-container {
    transform: none !important;
    margin-top: var(--space-4);
  }
  
  .hero-background-element {
    transform: none;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .card:hover {
    transform: translateY(-3px);
  }
  
  .category-card {
    height: 150px;
    margin-bottom: var(--space-3);
  }
  
  .testimonial-card {
    padding: var(--space-3);
    margin: 0 var(--space-2);
  }
  
  .testimonial-text {
    font-size: 0.9rem;
  }
  
  .company-background-image {
    margin-top: var(--space-4);
  }
  
  .pattern-background {
    width: 100%;
    height: 100%;
    transform: none;
  }
  
  .company-stat {
    margin-bottom: var(--space-3);
  }
  
  .bg-accent::after {
    width: 150px;
    height: 150px;
  }
  
  .animated-background {
    opacity: 0.03;
  }
  
  /* Improve form elements on mobile */
  .form-control, .form-select {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  .form-group {
    margin-bottom: var(--space-3);
  }
  
  /* Stack form columns on mobile */
  .row > [class*="col-"] {
    margin-bottom: var(--space-3);
  }
  
  /* Make buttons more tappable */
  .btn {
    padding: 0.5rem 1rem;
    min-height: 44px;
  }
  
  /* Adjust spacing */
  .container, .container-fluid {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .card-img-top {
    height: 160px;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--space-2);
  }
  
  .testimonial-image {
    width: 60px;
    height: 60px;
  }
  
  .footer {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
    margin-bottom: var(--space-3);
  }
  
  /* Fix for mobile list view */
  .list-view .product-item .card {
    flex-direction: column;
  }
  
  .list-view .product-item .card-img-top {
    width: 100%;
    height: 160px;
  }
}

/* ==========================================================================
   Product Page Specific Styles
   ========================================================================== */

/* Product filters */
.filter-section {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--gray-800);
}

.filter-group {
  margin-bottom: var(--space-3);
}

/* Price range slider */
.price-range-slider {
  width: 100%;
  margin-top: var(--space-3);
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* Tag filters */
.tag-filter {
  margin-right: var(--space-1);
  margin-bottom: var(--space-1);
  font-size: 0.85rem;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
}

.tag-filter.active {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
}

/* Product grid/list view */
.view-options {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.view-option {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  transition: var(--transition-normal);
}

.view-option.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Product item */
.product-item {
  margin-bottom: var(--space-4);
}

.product-item .card {
  height: 100%;
}

/* List view */
.list-view .product-item .card {
  flex-direction: row;
}

.list-view .product-item .card-img-top {
  width: 200px;
  height: 100%;
  object-fit: cover;
}

.list-view .product-item .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Product badges */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* Product rating */
.product-rating {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Quantity control */
.quantity-control {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
}

.quantity-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-200);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quantity-btn:hover {
  background-color: var(--gray-300);
}


.quantity-input {
  width: 50px;
  text-align: center;
  margin: 0 var(--space-1);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 0.25rem;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Compare checkbox */
.compare-checkbox {
  cursor: pointer;
}

/* Compare floating button */
#compareFloatingButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#compareFloatingButton .btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.compare-count {
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Product comparison table */
.comparison-table th {
  min-width: 150px;
}

.comparison-table td {
  vertical-align: middle;
}

/* Quick view modal */
#quickViewModal .modal-body {
  padding: var(--space-4);
}

#quick-view-image {
  max-height: 300px;
  object-fit: contain;
  margin-bottom: var(--space-3);
}

/* Recently viewed section */
.recently-viewed {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-300);
}

/* Mobile filters offcanvas */
.offcanvas-body {
  padding: var(--space-3);
}

/* ==========================================================================
   Product Detail Page Specific Styles
   ========================================================================== */

/* Product gallery */
.product-gallery {
  position: relative;
  margin-bottom: var(--space-4);
}

.product-main-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: var(--space-2);
}

.product-thumbnails {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.product-thumbnail:hover {
  border-color: var(--primary-color);
}

.product-thumbnail.active {
  border-color: var(--primary-color);
}

/* Product info */
.product-info {
  padding: var(--space-3);
}

.product-title {
  font-size: 1.8rem;
  margin-bottom: var(--space-2);
}

.product-price {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.product-description {
  margin-bottom: var(--space-4);
}

.product-meta {
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}

.product-meta-item {
  display: flex;
  margin-bottom: var(--space-1);
}

.product-meta-label {
  font-weight: 600;
  width: 100px;
}

/* Product tabs */
.product-tabs {
  margin-top: var(--space-5);
}

.nav-tabs .nav-link {
  color: var(--gray-700);
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-2) var(--space-3);
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  padding: var(--space-4);
  background-color: var(--white);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-sm);
}

/* Product reviews */
.review-item {
  padding: var(--space-3);
  border-bottom: 1px solid var(--gray-300);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.review-author {
  font-weight: 600;
}

.review-date {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.review-rating {
  margin-bottom: var(--space-2);
  color: var(--accent-color);
}

/* Related products */
.related-products {
  margin-top: var(--space-5);
}

/* ==========================================================================
   Cart Page Specific Styles
   ========================================================================== */

/* Cart table */
.cart-table {
  margin-bottom: var(--space-4);
}

.cart-table th {
  font-weight: 600;
  color: var(--gray-700);
}

.cart-product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-product-title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.cart-product-variant {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.cart-quantity {
  width: 80px;
}

.cart-remove-btn {
  color: var(--gray-600);
  background: none;
  border: none;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.cart-remove-btn:hover {
  color: var(--danger);
}

/* Cart summary */
.cart-summary {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.summary-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-300);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.summary-total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--gray-300);
}

/* ==========================================================================
   Checkout Page Specific Styles
   ========================================================================== */

/* Checkout steps */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  position: relative;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--gray-300);
  z-index: 1;
}


.checkout-step {
  position: relative;
  z-index: 2;
  background-color: var(--white);
  padding: 0 var(--space-2);
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--gray-300);
  color: var(--gray-700);
  font-weight: 600;
  margin: 0 auto var(--space-2);
  transition: var(--transition-normal);
}

.checkout-step.active .step-number {
  background-color: var(--primary-color);
  color: var(--white);
}

.checkout-step.completed .step-number {
  background-color: var(--success);
  color: var(--white);
}

.step-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}

.checkout-step.active .step-title {
  color: var(--primary-color);
  font-weight: 600;
}

/* Checkout forms */
.checkout-form {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.checkout-form-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-300);
}

/* Payment methods */
.payment-method {
  padding: var(--space-3);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  margin-bottom: var(--space-3);
  transition: var(--transition-fast);
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method.active {
  border-color: var(--primary-color);
  background-color: rgba(46, 125, 50, 0.05);
}

.payment-method-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-2);
}

.payment-method-radio {
  margin-right: var(--space-2);
}

.payment-method-title {
  font-weight: 600;
  margin-bottom: 0;
}

.payment-method-description {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-left: 24px;
}

/* Order summary */
.order-summary {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   Account Pages Specific Styles
   ========================================================================== */

/* Account sidebar */
.account-sidebar {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.account-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-menu-item {
  margin-bottom: var(--space-1);
}

.account-menu-link {
  display: flex;
  align-items: center;
  padding: var(--space-2);
  border-radius: 8px;
  color: var(--gray-700);
  transition: var(--transition-fast);
}

.account-menu-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
  text-decoration: none;
}

.account-menu-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.account-menu-icon {
  margin-right: var(--space-2);
  font-size: 1.2rem;
}

/* Account content */
.account-content {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.account-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-300);
}

/* Order history */
.order-card {
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  margin-bottom: var(--space-3);
  transition: var(--transition-fast);
}

.order-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.order-header {
  padding: var(--space-2) var(--space-3);
  background-color: var(--gray-100);
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-number {
  font-weight: 600;
}

.order-date {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.order-body {
  padding: var(--space-3);
}

.order-product {
  display: flex;
  margin-bottom: var(--space-2);
}

.order-product:last-child {
  margin-bottom: 0;
}

.order-product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: var(--space-2);
}

.order-product-details {
  flex: 1;
}

.order-product-title {
  font-weight: 600;
  margin-bottom: 0;
}

.order-product-variant {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.order-footer {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--gray-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-weight: 600;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.order-status-pending {
  background-color: var(--warning-light);
  color: var(--warning-dark);
}

.order-status-processing {
  background-color: var(--info-light);
  color: var(--info-dark);
}

.order-status-shipped {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.order-status-delivered {
  background-color: var(--success-light);
  color: var(--success-dark);
}

.order-status-cancelled {
  background-color: var(--danger-light);
  color: var(--danger-dark);
}

/* ==========================================================================
   Blog Specific Styles
   ========================================================================== */

/* Blog card */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  margin-bottom: var(--space-4);
  background-color: var(--white);
}

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

.blog-card-img {
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--space-3);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: 0.85rem;
  color: var(--gray-600);
}

.blog-card-author {
  margin-right: var(--space-2);
}

.blog-card-date {
  margin-right: var(--space-2);
}

.blog-card-category {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

.blog-card-excerpt {
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
}

/* Blog post */
.blog-post {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.blog-post-header {
  margin-bottom: var(--space-4);
}

.blog-post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
  color: var(--gray-600);
}

.blog-post-author {
  display: flex;
  align-items: center;
  margin-right: var(--space-3);
}

.blog-post-author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-2);
}

.blog-post-date {
  margin-right: var(--space-3);
}

.blog-post-category {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.blog-post-featured-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-4);
}

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-post-content p {
  margin-bottom: var(--space-3);
}

.blog-post-content h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
}

.blog-post-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.blog-post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: var(--space-3) 0;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: var(--space-3);
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: var(--gray-700);
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-300);
}

.blog-post-tag {
  background-color: var(--gray-200);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.blog-post-tag:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

/* Blog sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.blog-sidebar-widget {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.blog-sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-300);
}

.blog-search {
  margin-bottom: var(--space-3);
}

.blog-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-category-item {
  margin-bottom: var(--space-2);
}

.blog-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-700);
  transition: var(--transition-fast);
}

.blog-category-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.blog-category-count {
  background-color: var(--gray-200);
  color: var(--gray-700);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.blog-category-link:hover .blog-category-count {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.blog-tag {
  background-color: var(--gray-200);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: var(--space-1);
  transition: var(--transition-fast);
}

.blog-tag:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

.blog-recent-post {
  display: flex;
  margin-bottom: var(--space-3);
}

.blog-recent-post:last-child {
  margin-bottom: 0;
}


.blog-recent-post-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: var(--space-2);
}

.blog-recent-post-info {
  flex: 1;
}

.blog-recent-post-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.blog-recent-post-date {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */

/* Contact info */
.contact-info-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-normal);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.contact-info-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.contact-info-text {
  color: var(--gray-700);
}

/* Contact form */
.contact-form {
  background-color: var(--white);
  border-radius: 12px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

/* Map */
.contact-map {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-4);
}

/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */

/* Team member */
.team-member-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  margin-bottom: var(--space-4);
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-member-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member-info {
  padding: var(--space-3);
  text-align: center;
}

.team-member-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.team-member-position {
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.team-member-bio {
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
}

.team-member-social {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.team-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-200);
  color: var(--gray-700);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.team-social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Timeline */
.timeline {
  position: relative;
  padding: var(--space-4) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--gray-300);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-5);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: var(--space-3);
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
  float: left;
}

.timeline-item:nth-child(even) .timeline-content {
  float: right;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   Error Pages
   ========================================================================== */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-5) 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.error-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.error-message {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */

/* Admin sidebar */
.admin-sidebar {
  background-color: var(--gray-900);
  color: var(--white);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  z-index: 1040;
  padding-top: 60px;
  transition: var(--transition-normal);
}

.admin-sidebar-collapsed {
  width: 70px;
}

.admin-sidebar-header {
  padding: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}


.admin-sidebar-brand:hover {
  color: var(--white);
  text-decoration: none;
}

.admin-sidebar-brand img {
  height: 40px;
  margin-right: var(--space-2);
}

.admin-sidebar-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-menu-item {
  margin-bottom: 2px;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  color: var(--gray-400);
  transition: var(--transition-fast);
}

.admin-menu-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.admin-menu-link.active {
  color: var(--white);
  background-color: var(--primary-color);
}

.admin-menu-icon {
  margin-right: var(--space-2);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.admin-menu-text {
  transition: var(--transition-normal);
}

.admin-sidebar-collapsed .admin-menu-text {
  display: none;
}

.admin-menu-badge {
  margin-left: auto;
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.admin-submenu {
  list-style: none;
  padding-left: 2.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.admin-menu-item.open .admin-submenu {
  max-height: 500px;
}

.admin-submenu-link {
  display: block;
  padding: var(--space-1) var(--space-2);
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.admin-submenu-link:hover {
  color: var(--white);
  text-decoration: none;
}

.admin-submenu-link.active {
  color: var(--primary-color);
}

/* Admin content */
.admin-content {
  margin-left: 250px;
  padding: 80px var(--space-4) var(--space-4);
  transition: var(--transition-normal);
}

.admin-content-collapsed {
  margin-left: 70px;
}

/* Admin navbar */
.admin-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 250px;
  height: 60px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1030;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
}

.admin-navbar-collapsed {
  left: 70px;
}

.admin-navbar-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.admin-nav-item {
  position: relative;
  margin-left: var(--space-3);
}

.admin-nav-link {
  color: var(--gray-700);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

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

.admin-nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.admin-user-dropdown {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-2);
}

.admin-user-name {
  font-weight: 500;
  margin-right: var(--space-1);
}

/* Admin cards */
.admin-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
  transition: var(--transition-fast);
}

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

.admin-card-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.admin-card-body {
  padding: var(--space-3);
}

.admin-card-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--gray-300);
}

/* Admin stats */
.admin-stat-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.admin-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.admin-stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-right: var(--space-3);
}

.admin-stat-primary .admin-stat-icon {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
}

.admin-stat-info .admin-stat-icon {
  background-color: rgba(3, 169, 244, 0.1);
  color: #03a9f4;
}

.admin-stat-success .admin-stat-icon {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.admin-stat-warning .admin-stat-icon {
  background-color: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.admin-stat-danger .admin-stat-icon {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.admin-stat-content {
  flex: 1;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}


.admin-stat-label {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.admin-stat-change {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  margin-top: var(--space-1);
}

.admin-stat-change-positive {
  color: var(--success);
}

.admin-stat-change-negative {
  color: var(--danger);
}

/* Admin tables */
.admin-table {
  width: 100%;
}

.admin-table th {
  font-weight: 600;
  color: var(--gray-700);
  border-top: none;
  border-bottom-width: 1px;
}

.admin-table td {
  vertical-align: middle;
}

.admin-table-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-table-actions {
  display: flex;
  gap: var(--space-1);
}

.admin-table-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--gray-700);
  background-color: var(--gray-200);
  transition: var(--transition-fast);
}

.admin-table-action:hover {
  color: var(--white);
}

.admin-table-action-view:hover {
  background-color: var(--info);
}

.admin-table-action-edit:hover {
  background-color: var(--primary-color);
}

.admin-table-action-delete:hover {
  background-color: var(--danger);
}

/* Admin forms */
.admin-form-group {
  margin-bottom: var(--space-3);
}

.admin-form-label {
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.admin-form-control {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  transition: var(--transition-fast);
}

.admin-form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.admin-form-check {
  padding-left: 1.8rem;
}

.admin-form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  margin-left: -1.8rem;
}

.admin-form-check-label {
  font-weight: 400;
}

.admin-form-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: var(--space-1);
}

/* Admin tabs */
.admin-tabs {
  margin-bottom: var(--space-4);
}

.admin-tabs .nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border: none;
  border-bottom: 2px solid transparent;
}

.admin-tabs .nav-link:hover {
  color: var(--primary-color);
}

.admin-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 2px solid var(--primary-color);
}

/* Admin pagination */
.admin-pagination {
  margin-top: var(--space-4);
}

.admin-pagination .page-link {
  color: var(--gray-700);
  border-color: var(--gray-300);
  transition: var(--transition-fast);
}

.admin-pagination .page-link:hover {
  color: var(--primary-color);
  background-color: var(--gray-200);
  border-color: var(--gray-300);
}

.admin-pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Admin modals */
.admin-modal .modal-header {
  border-bottom: 1px solid var(--gray-300);
  padding: var(--space-3);
}

.admin-modal .modal-title {
  font-weight: 600;
}

.admin-modal .modal-body {
  padding: var(--space-3);
}

.admin-modal .modal-footer {
  border-top: 1px solid var(--gray-300);
  padding: var(--space-3);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

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

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

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

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

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

/* Background colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.bg-dark {
  background-color: var(--dark-color) !important;
}

.bg-light {
  background-color: var(--light-color) !important;
}

/* Spacing utilities */
.mt-6 {
  margin-top: 4rem !important;
}

.mb-6 {
  margin-bottom: 4rem !important;
}

.py-6 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Border radius */
.rounded-xl {
  border-radius: 1rem !important;
}

.rounded-xxl {
  border-radius: 2rem !important;
}

/* Shadows */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Hover effects */
.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hover-zoom {
  transition: var(--transition-normal);
  overflow: hidden;
}

.hover-zoom img {
  transition: var(--transition-normal);
}

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

/* Opacity */
.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-50 {
  opacity: 0.5 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

/* Z-index */
.z-1 {
  z-index: 1 !important;
}

.z-10 {
  z-index: 10 !important;
}

.z-100 {
  z-index: 100 !important;
}

.z-1000 {
  z-index: 1000 !important;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

.overflow-auto {
  overflow: auto !important;
}

.overflow-visible {
  overflow: visible !important;
}

/* Position utilities */
.position-absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.position-absolute-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.position-absolute-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* Width and height */
.w-auto {
  width: auto !important;
}

.h-auto {
  height: auto !important;
}

.min-h-100 {
  min-height: 100% !important;
}

.min-vh-50 {
  min-height: 50vh !important;
}

.min-vh-75 {
  min-height: 75vh !important;
}

/* Object fit */
.object-cover {
  object-fit: cover !important;
}

.object-contain {
  object-fit: contain !important;
}

.object-fill {
  object-fit: fill !important;
}

/* Text utilities */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer !important;
}

.cursor-default {
  cursor: default !important;
}

.cursor-not-allowed {
  cursor: not-allowed !important;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  
  .no-print-border {
    border: none !important;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus-visible:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Dark mode styles - if you want to implement dark mode */
@media (prefers-color-scheme: dark) {
  :root.dark-mode-auto {
    --primary-color: #60ad5e;
    --primary-light: #8ce683;
    --primary-dark: #2e7d32;
    --secondary-color: #a5d6a7;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --white: #121212;
    --gray-100: #1e1e1e;
    --gray-200: #2d2d2d;
    --gray-300: #3d3d3d;
    --gray-400: #4d4d4d;
    --gray-500: #5d5d5d;
    --gray-600: #6d6d6d;
    --gray-700: #8d8d8d;
    --gray-800: #adadad;
    --gray-900: #cdcdcd;
    --black: #ffffff;
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.4);
  }
  
  .dark-mode-auto body {
    background-color: #121212;
    color: var(--text-color);
  }
  
  .dark-mode-auto .card,
  .dark-mode-auto .navbar,
  .dark-mode-auto .modal-content,
  .dark-mode-auto .dropdown-menu {
    background-color: var(--gray-100);
  }
  
  .dark-mode-auto .border,
  .dark-mode-auto .border-top,
  .dark-mode-auto .border-right,
  .dark-mode-auto .border-bottom,
  .dark-mode-auto .border-left {
    border-color: var(--gray-300) !important;
  }
  
  .dark-mode-auto .text-dark {
    color: var(--text-color) !important;
  }
  
  .dark-mode-auto .bg-white,
  .dark-mode-auto .bg-light {
    background-color: var(--gray-100) !important;
  }
  
  .dark-mode-auto .text-muted {
    color: var(--gray-600) !important;
  }
}

/* Manual dark mode toggle */
:root.dark-mode {
  --primary-color: #60ad5e;
  --primary-light: #8ce683;
  --primary-dark: #2e7d32;
  --secondary-color: #a5d6a7;
  --text-color: #e0e0e0;
  --text-light: #b0b0b0;
  --white: #121212;
  --gray-100: #1e1e1e;
  --gray-200: #2d2d2d;
  --gray-300: #3d3d3d;
  --gray-400: #4d4d4d;
  --gray-500: #5d5d5d;
  --gray-600: #6d6d6d;
  --gray-700: #8d8d8d;
  --gray-800: #adadad;
  --gray-900: #cdcdcd;
  --black: #ffffff;
  
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

.dark-mode body {
  background-color: #121212;
  color: var(--text-color);
}

.dark-mode .card,
.dark-mode .navbar,
.dark-mode .modal-content,
.dark-mode .dropdown-menu {
  background-color: var(--gray-100);
}


.dark-mode .border,
.dark-mode .border-top,
.dark-mode .border-right,
.dark-mode .border-bottom,
.dark-mode .border-left {
  border-color: var(--gray-300) !important;
}

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

.dark-mode .bg-white,
.dark-mode .bg-light {
  background-color: var(--gray-100) !important;
}

.dark-mode .text-muted {
  color: var(--gray-600) !important;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

.dark-mode-toggle i {
  font-size: 1.5rem;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

[dir="rtl"] .mr-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}

[dir="rtl"] .text-right {
  text-align: left !important;
}

[dir="rtl"] .text-left {
  text-align: right !important;
}

[dir="rtl"] .float-right {
  float: left !important;
}

[dir="rtl"] .float-left {
  float: right !important;
}

[dir="rtl"] .ml-1,
[dir="rtl"] .ml-2,
[dir="rtl"] .ml-3,
[dir="rtl"] .ml-4,
[dir="rtl"] .ml-5 {
  margin-left: 0 !important;
}

[dir="rtl"] .ml-1 {
  margin-right: 0.25rem !important;
}

[dir="rtl"] .ml-2 {
  margin-right: 0.5rem !important;
}

[dir="rtl"] .ml-3 {
  margin-right: 1rem !important;
}

[dir="rtl"] .ml-4 {
  margin-right: 1.5rem !important;
}

[dir="rtl"] .ml-5 {
  margin-right: 3rem !important;
}

[dir="rtl"] .mr-1,
[dir="rtl"] .mr-2,
[dir="rtl"] .mr-3,
[dir="rtl"] .mr-4,
[dir="rtl"] .mr-5 {
  margin-right: 0 !important;
}

[dir="rtl"] .mr-1 {
  margin-left: 0.25rem !important;
}

[dir="rtl"] .mr-2 {
  margin-left: 0.5rem !important;
}

[dir="rtl"] .mr-3 {
  margin-left: 1rem !important;
}

[dir="rtl"] .mr-4 {
  margin-left: 1.5rem !important;
}

[dir="rtl"] .mr-5 {
  margin-left: 3rem !important;
}

/* High Contrast Mode */
@media (forced-colors: active) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .card {
    border: 1px solid currentColor;
  }
  
  .form-control {
    border: 1px solid currentColor;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll,
  .fade-in-up,
  .animate__fadeIn,
  .animate__fadeInUp,
  .floating {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}