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

:root {
  --primary-color: #22c55e;
  --primary-hover: #15803d;
  --primary-dark: #14532d;
  --primary-light: #f0fdf4;
  --secondary-color: #10b981;
  --secondary-hover: #0f766e;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --gray-color: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  --font-family-sans: 'Plus Jakarta Sans', sans-serif;
  --font-family-base: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  --box-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  background-color: #f8fafc;
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-sans);
  font-weight: 700;
  color: var(--dark-color);
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  font-family: var(--font-family-sans);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  transition: var(--transition);
}

.btn-sm {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
}

.form-select-sm {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  padding-left: 0.75rem !important;
  padding-right: 2.25rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
  height: auto !important;
}

.input-group-sm .form-control {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  padding-left: 0.75rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
}

.input-group-sm .input-group-text {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  font-size: 0.8rem !important;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #16a34a 0%, var(--primary-hover) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-success-custom {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success-custom:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Navbar */
#mainNavbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-family: var(--font-family-sans);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark-color) !important;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  color: var(--primary-color);
  margin-right: 0.35rem;
  display: inline-block;
  transform: rotate(-15deg);
  transition: transform 0.4s ease;
}

.navbar-brand:hover i {
  transform: rotate(-35deg) scale(1.15);
}

.navbar-brand span {
  color: var(--primary-color);
}

.nav-link {
  font-weight: 600;
  font-family: var(--font-family-sans);
  color: #475569 !important;
  padding: 0.45rem 0.5rem !important;
  margin: 0 0.5rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom center;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

@media (hover: hover) {
  .nav-link:hover::after {
    transform: scaleX(1);
  }
  .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: transparent !important;
  }
}

.nav-badge {
  position: absolute !important;
  top: 4px;
  right: 8px;
  transform: translate(50%, -35%);
  font-size: 0.65rem !important;
  padding: 0.2rem 0.45rem !important;
  border: 1.5px solid white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Custom Register Button Navbar */
.btn-nav-register {
  background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
  border: none;
  color: white !important;
  padding: 0.45rem 1.35rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}

.btn-nav-register:hover {
  background: linear-gradient(135deg, #16a34a 0%, var(--primary-hover) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  color: white !important;
}

/* Form Controls */
.form-control, .form-select {
  border-radius: 10px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  background-color: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: url('/uploads/products/pakcoy.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Stat Info on Hero */
.hero-stats {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-item span {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About Section styling */
.about-section {
  padding: 80px 0;
  background-color: white;
}

.about-image-wrapper {
  position: relative;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.about-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/uploads/products/bayam.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 2;
}

.about-icon-grid {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-icon-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  transition: var(--transition);
}

.about-icon-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.about-icon-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
}

.about-icon-card span {
  font-family: var(--font-family-sans);
  font-weight: 700;
  font-size: 0.85rem;
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(5px);
  border-color: rgba(34, 197, 94, 0.15);
  background: white;
  box-shadow: var(--box-shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item h6 {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray-color);
}

/* Featured Products styling */
.featured-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(34, 197, 94, 0.2);
}

.product-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #f8fafc;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  z-index: 3;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-name a {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-hover);
  margin-bottom: 0.75rem;
}

.product-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.product-meta .stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.product-meta .stock.in-stock {
  color: var(--success-color);
}

.product-meta .stock.out-stock {
  color: var(--danger-color);
}

/* Filter Bar */
.filter-bar {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

/* Pagination */
.custom-pagination .page-item .page-link {
  color: var(--dark-color);
  border: 1px solid var(--border-color);
  margin: 0 3px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.custom-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
  border-color: var(--primary-color);
  color: white;
}

.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.custom-pagination .page-item.disabled .page-link {
  color: var(--gray-color);
  background-color: #f1f5f9;
  border-color: var(--border-color);
  cursor: not-allowed;
  pointer-events: none;
}

.page-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Page Headers */
.page-header {
  margin-bottom: 40px;
}

.page-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-color);
}

.auth-body {
  padding-top: 0 !important;
  background-color: #f1f5f9;
}

/* Authentication Cards styling */
.auth-section {
  padding: 20px 0;
  background-color: #f1f5f9;
  background-image: radial-gradient(at 0% 0%, rgba(34, 197, 94, 0.05) 0px, transparent 50%),
                    radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-card {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.03), 0 20px 40px -10px rgba(15, 23, 42, 0.05);
}

.auth-image-col {
  background-image: url('https://images.unsplash.com/photo-1599599810769-bcde5a160d32?auto=format&fit=crop&q=80&w=800');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100%;
}

.auth-image-col-register {
  background-image: url('https://images.unsplash.com/photo-1576045057995-568f588f82fb?auto=format&fit=crop&q=80&w=800') !important;
}

.auth-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.85) 0%, rgba(15, 23, 42, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  z-index: 1;
}

.auth-image-text {
  color: white;
  z-index: 2;
}

.auth-image-text h4 {
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.auth-image-text h4 span {
  color: var(--primary-color);
}

.auth-image-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  display: inline-block;
  animation: bounce-slow 4s infinite;
}

.auth-header h3 {
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.auth-header p {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.input-group-text {
  background-color: #f8fafc;
  border-color: var(--border-color);
  color: var(--gray-color);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.auth-footer p {
  margin: 0;
  color: var(--gray-color);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* CTA Section styling */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #064e3b 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 40%);
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #a7f3d0;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Footer styling */
.site-footer {
  background-color: #0b1329;
  color: #94a3b8;
  padding: 80px 0 40px;
  margin-top: auto;
  border-top: 5px solid var(--primary-color);
  font-size: 0.9rem;
}

.site-footer h6 {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 8px;
}

.site-footer h6::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-brand h5 {
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand h5 i {
  color: var(--primary-color);
  transform: rotate(-15deg);
  display: inline-block;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Social media icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Footer lists */
.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-contact li {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color) !important;
  transform: translateX(4px);
}

.footer-contact li {
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.4;
}

.footer-contact li i {
  color: var(--primary-color);
  font-size: 1rem;
  margin-top: 2px;
}

/* Divider & bottom */
.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 40px 0 20px;
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-color) !important;
}

/* Chat UI Page styling */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.chat-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, #dcfce7 100%);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.chat-header-info h6 {
  margin: 0;
  font-weight: 700;
}

.chat-messages {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-bubble {
  max-width: 70%;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  animation: fade-in-up 0.3s ease;
}

.chat-bubble-name {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--gray-color);
}

.chat-bubble-text {
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble-time {
  font-size: 0.65rem;
  text-align: right;
  margin-top: 0.4rem;
  color: var(--gray-color);
}

.chat-bubble-left {
  align-self: flex-start;
  background-color: white;
  border-top-left-radius: 3px;
  border: 1px solid #f1f5f9;
}

.chat-bubble-right {
  align-self: flex-end;
  background-color: #dcf8c6;
  border-top-right-radius: 3px;
}

.chat-bubble-right .chat-bubble-name {
  color: var(--primary-dark);
}

.chat-input {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: white;
}

/* Admin Dashboard CSS */
.admin-body {
  background-color: #f1f5f9;
  padding-top: 0 !important;
}

.admin-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background-color: var(--dark-color);
  color: white;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  z-index: 1030;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.05);
  height: 100vh;
}

.sidebar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand a {
  font-family: var(--font-family-sans);
  color: white;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-brand a i {
  color: var(--primary-color);
}

.sidebar-brand small {
  color: #64748b;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.25rem;
}

.sidebar-nav {
  padding: 1rem 0;
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-family: var(--font-family-sans);
  font-size: 0.85rem;
}

.sidebar-link i {
  font-size: 1.1rem;
  margin-right: 0.75rem;
  width: 20px;
}

.sidebar-link:hover, .sidebar-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--primary-color);
  padding-left: calc(1rem - 4px);
}

.sidebar-badge {
  margin-left: auto;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

.sidebar-footer a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.03);
}

.sidebar-footer a.text-danger:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 240px;
}

.admin-topbar {
  height: 60px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.admin-topbar-icon {
  font-size: 1.2rem;
  color: var(--gray-color);
  text-decoration: none;
  transition: var(--transition);
}

.admin-topbar-icon:hover {
  color: var(--primary-color);
}

.badge-notification {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 0.25em 0.6em;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: white;
  background-color: var(--danger-color, #ef4444);
  border-radius: 50rem;
}

.admin-user-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: white;
  transition: var(--transition);
  font-size: 0.85rem;
}

.admin-content {
  padding: 1.25rem;
  flex-grow: 1;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin-page-title {
  margin: 0 0 10px 0;
  font-weight: 800;
  font-size: 1.35rem;
}

.admin-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.admin-card-body {
  padding: 1.25rem;
}

.admin-card-header {
  padding: 0.85rem 1.25rem;
  background-color: #fafbfc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-header h5 {
  font-size: 1rem;
  margin: 0;
}

/* Stat Cards Admin */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  background-color: white;
  transition: var(--transition);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card-1 .stat-icon {
  background-color: #dcfce7;
  color: #15803d;
}

.stat-card-2 .stat-icon {
  background-color: #e0f2fe;
  color: #0369a1;
}

.stat-card-3 .stat-icon {
  background-color: #fef3c7;
  color: #b45309;
}

.stat-card-4 .stat-icon {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.stat-card-revenue .stat-icon {
  background-color: #ecfdf5;
  color: #047857;
}

.stat-info h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-color);
}

.stat-info span {
  font-size: 0.8rem;
  color: var(--gray-color);
  font-weight: 500;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-lg);
}

/* Admin Table styling */
.admin-table {
  width: 100%;
  margin-bottom: 0;
  color: var(--dark-color);
  vertical-align: middle;
}

.admin-table th {
  background-color: #f8fafc;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr {
  transition: var(--transition);
}

.admin-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Order Status Badges */
.order-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50rem;
  text-align: center;
}

.status-pending, .status-menunggu-pembayaran {
  background-color: #fef3c7;
  color: #d97706;
}

.status-menunggu-konfirmasi {
  background-color: #e0f2fe;
  color: #0284c7;
}

.status-diproses {
  background-color: #e0e7ff;
  color: #4f46e5;
}

.status-dikirim {
  background-color: #fae8ff;
  color: #c084fc;
}

.status-selesai {
  background-color: #dcfce7;
  color: #16a34a;
}

.status-dibatalkan {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Admin Split Screen Chat Layout */
.admin-chat-layout {
  height: calc(100vh - 70px - 4rem);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: white;
}

.admin-chat-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.admin-chat-list {
  flex-grow: 1;
}

.admin-chat-item {
  border-bottom: 1px solid #f1f5f9;
  transition: var(--transition);
}

.admin-chat-item.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.admin-chat-area-container {
  height: 100%;
}

.admin-chat-area-container .chat-container {
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Compact Form Inputs for Admin */
.admin-page .form-control,
.admin-page .form-select {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.admin-page .form-label {
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-color);
}

.admin-page .admin-card-body {
  padding: 1rem 1.25rem;
}

.admin-page .row.g-3 {
  --bs-gutter-y: 0.75rem; /* reduce vertical gap slightly */
}

.admin-page .image-preview {
  height: 80px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  color: var(--gray-color);
  font-size: 0.8rem;
  overflow: hidden;
}

.admin-page .image-preview img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Admin Product Management styling */
.admin-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.badge-category {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.badge-stock-in {
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.badge-stock-out {
  background-color: #fee2e2;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.admin-btn-action {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: var(--transition);
}

/* Keyframes animations */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -240px;
    bottom: 0;
    width: 240px;
  }
  .admin-sidebar.show {
    left: 0;
  }
  .admin-main {
    margin-left: 0;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Print Styles */
@media print {
  body.admin-body {
    background-color: #ffffff !important;
    color: #000000 !important;
    padding-top: 0 !important;
  }

  .admin-sidebar,
  .admin-topbar,
  .d-print-none,
  .btn,
  button,
  .modal,
  .admin-card-header a {
    display: none !important;
  }

  .admin-main {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .admin-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .admin-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }

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

  table.admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  table.admin-table th, 
  table.admin-table td {
    color: #000000 !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 8px !important;
  }
}

/* ==========================================================================
   Product Catalog Page Enhancements
   ========================================================================== */
.catalog-header {
  margin-top: 2rem;
}
.catalog-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.catalog-subtitle {
  color: var(--gray-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Beautiful Search and Select boxes (Live search without button) */
.search-box-wrapper, .select-box-wrapper {
  position: relative;
  width: 100%;
}
.search-box-wrapper .search-icon, .select-box-wrapper .select-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-color);
  font-size: 1.1rem;
  pointer-events: none;
  transition: var(--transition);
}
.search-box-wrapper .search-icon {
  left: 1.25rem;
}
.select-box-wrapper .select-icon {
  left: 1.25rem;
}

.search-box-wrapper .search-input, .select-box-wrapper .select-input {
  padding-left: 3rem !important;
  height: 52px;
  border-radius: 12px;
  background-color: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  font-weight: 500;
}

.search-box-wrapper .search-input:focus, .select-box-wrapper .select-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.search-box-wrapper:focus-within .search-icon, .select-box-wrapper:focus-within .select-icon {
  color: var(--primary-color);
}

/* Product Card Fade In transition on filter load */
.product-card-container {
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   Product Detail Page Enhancements
   ========================================================================== */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--gray-color);
  font-family: var(--font-family-sans);
}
.breadcrumb-nav a {
  color: var(--gray-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.breadcrumb-nav a:hover {
  color: var(--primary-color);
}
.breadcrumb-nav i {
  font-size: 0.75rem;
  color: #cbd5e1;
}
.breadcrumb-nav span {
  font-weight: 600;
  color: var(--dark-color);
}

.product-detail-image-wrapper {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.product-detail-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-detail-image-wrapper:hover img {
  transform: scale(1.03);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-detail-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  width: fit-content;
}
.product-detail-name {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-detail-stock {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product-detail-stock .badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 30px;
}
.product-detail-stock .badge.bg-success {
  background-color: var(--primary-light) !important;
  color: var(--success-color) !important;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.product-detail-stock .badge.bg-danger {
  background-color: #fee2e2 !important;
  color: var(--danger-color) !important;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.product-detail-stock .text-muted {
  font-size: 0.9rem;
  font-weight: 500;
}

.product-detail-desc {
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}
.product-detail-desc h6 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}
.product-detail-desc p {
  color: var(--gray-color);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.product-detail-form {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 30px;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  border: 1px solid #e2e8f0;
}
.qty-btn {
  border: none;
  background: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.qty-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}
.qty-input {
  border: none;
  background: transparent;
  width: 50px;
  text-align: center;
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1rem;
  outline: none;
}
/* Hide default arrows on quantity input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type=number] {
  -moz-appearance: textfield;
}

/* Floating Chat Button */
.floating-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.floating-chat-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #16a34a 0%, var(--primary-hover) 100%);
}

.floating-chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.7rem !important;
  padding: 0.2rem 0.45rem !important;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

/* Floating Chat Widget */
.floating-chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 480px;
  background-color: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.floating-chat-widget.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-chat-header {
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #16a34a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-chat-header h6 {
  font-family: var(--font-family-sans);
  font-weight: 700;
  margin: 0;
}

.floating-chat-header small {
  opacity: 0.85;
  font-size: 0.72rem;
}

.floating-chat-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
}

.floating-chat-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.floating-chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-chat-messages .chat-bubble {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  font-size: 0.85rem;
  position: relative;
}

.floating-chat-messages .chat-bubble-name {
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--gray-color);
}

.floating-chat-messages .chat-bubble-text {
  line-height: 1.4;
  word-break: break-word;
}

.floating-chat-messages .chat-bubble-time {
  font-size: 0.58rem;
  text-align: right;
  margin-top: 0.2rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.floating-chat-messages .chat-bubble-left {
  align-self: flex-start;
  background-color: white;
  border-top-left-radius: 2px;
  border: 1px solid #f1f5f9;
}

.floating-chat-messages .chat-bubble-right {
  align-self: flex-end;
  background-color: #dcf8c6;
  border-top-right-radius: 2px;
}

.floating-chat-input {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border-color);
  background-color: white;
}

.floating-chat-input .form-control {
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.floating-chat-input .btn-primary-custom {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active, 
.reveal-left.active, 
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   Cart Page Styles
   ========================================================================== */
.cart-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: none;
  transition: var(--transition);
}

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

.cart-item:hover {
  transform: none;
  box-shadow: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-info h6 {
  font-family: var(--font-family-sans);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--dark-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.05rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.cart-item-qty {
  flex-shrink: 0;
}

.cart-item-subtotal {
  flex-shrink: 0;
  min-width: 110px;
  text-align: right;
  font-size: 1.1rem;
  color: var(--primary-hover);
}

.cart-item-remove {
  flex-shrink: 0;
}

.cart-item-remove .btn-outline-danger {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #fee2e2;
  background-color: #fff5f5;
  color: var(--danger-color);
  transition: var(--transition);
}

.cart-item-remove .btn-outline-danger:hover {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
  color: white !important;
  transform: scale(1.05);
}

.cart-summary {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 96px;
}

.cart-summary h5 {
  font-family: var(--font-family-sans);
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Orders Page Styles
   ========================================================================== */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.order-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(34, 197, 94, 0.15);
}

.order-card-header {
  padding: 1rem 1.5rem;
  background-color: #fafbfc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-code {
  font-family: monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-color);
  background-color: #f1f5f9;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-right: 0.75rem;
}

.order-date {
  font-size: 0.85rem;
  color: var(--gray-color);
  font-weight: 500;
}

.order-card-body {
  padding: 1.25rem 1.5rem;
}

.order-card-footer {
  padding: 1rem 1.5rem;
  background-color: white;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Empty & Error State styling */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.empty-state > i {
  font-size: 4.5rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: bounce-slow 4s infinite;
}

.empty-state h4 {
  font-family: var(--font-family-sans);
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.empty-state .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 180px;
  padding: 0.6rem 1.5rem !important;
  font-size: 0.95rem !important;
  margin: 0 auto;
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */
.checkout-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--box-shadow);
}

.checkout-card h5 {
  font-family: var(--font-family-sans);
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1.25rem;
}

.checkout-payment-info {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.checkout-payment-info h6 {
  font-family: var(--font-family-sans);
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.checkout-payment-info p {
  font-size: 0.9rem;
  color: var(--gray-color);
  line-height: 1.5;
}

.checkout-payment-info p a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.checkout-payment-info p a:hover {
  text-decoration: underline;
}

.bank-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.bank-item {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.bank-item:hover {
  border-color: rgba(34, 197, 94, 0.25);
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.bank-item strong {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.bank-item span {
  font-size: 0.85rem;
  color: var(--dark-color);
  font-family: monospace;
  font-weight: 600;
}

/* Chat Caption Styling */
.chat-caption {
  font-size: 0.9rem;
  color: inherit;
  margin-top: 6px;
  line-height: 1.4;
  word-break: break-word;
}

/* User Order Detail Page Styling */
.detail-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

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

.detail-card-header h5 {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark-color);
}

/* Horizontal Order Stepper Timeline */
.order-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  width: 100%;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.stepper-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #cbd5e1;
  transition: var(--transition);
}

.stepper-label {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-color);
  font-family: var(--font-family-sans);
  transition: var(--transition);
}

.stepper-line {
  flex: 1;
  height: 4px;
  background-color: #e2e8f0;
  margin: 0 -20px;
  margin-bottom: 24px; /* Align line with center of bubbles */
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

/* Stepper States */
.stepper-step.active .stepper-bubble {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 1px var(--primary-color), 0 4px 12px rgba(34, 197, 94, 0.3);
}

.stepper-step.active .stepper-label {
  color: var(--primary-color);
}

.stepper-step.completed .stepper-bubble {
  background-color: var(--success-color);
  color: white;
  box-shadow: 0 0 0 1px var(--success-color);
}

.stepper-step.completed .stepper-label {
  color: var(--dark-color);
}

.stepper-line.completed {
  background-color: var(--success-color);
}

.text-hover-success:hover {
  color: var(--primary-color) !important;
}

/* ==========================================================================
   Responsive Adjustments for Hero Section
   ========================================================================== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-stats {
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .stat-item {
    padding: 0.6rem 1rem;
    flex: 1 1 calc(50% - 1rem);
    min-width: 110px;
  }
  .page-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .stat-item {
    padding: 0.5rem 0.5rem;
    min-width: 0;
    text-align: center;
    border-radius: 8px;
  }
  .stat-item strong {
    font-size: 1.15rem;
    margin-bottom: 0.1rem;
  }
  .stat-item span {
    font-size: 0.625rem;
    letter-spacing: 0;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 0;
  }
  .page-header h2 {
    font-size: 1.25rem;
  }
  .empty-state > i {
    font-size: 3.5rem;
  }
  .empty-state h4 {
    font-size: 1.25rem;
  }
  .cart-item {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0;
    align-items: flex-start;
  }
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  .cart-item-info {
    width: calc(100% - 75px);
  }
  .cart-item-info h6 {
    font-size: 0.95rem;
    white-space: normal;
  }
  .cart-item-qty {
    order: 3;
    margin-left: 75px;
  }
  .cart-item-subtotal {
    order: 4;
    text-align: left;
    min-width: 0;
    align-self: center;
    font-size: 1rem;
  }
  .cart-item-remove {
    order: 5;
    margin-left: auto;
  }
  /* Responsive order cards */
  .order-card-header {
    align-items: flex-start !important;
  }
  .order-card-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }
  .order-code {
    margin-right: 0 !important;
    font-size: 0.9rem !important;
  }
  .order-date {
    font-size: 0.8rem !important;
  }
  .order-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .order-card-footer .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .floating-chat-widget {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 90px;
  }
}

/* Sleek Mobile Navbar */
@media (max-width: 991px) {
  .navbar-toggler {
    border: none;
    padding: 0.35rem 0.5rem;
    color: var(--dark-color);
  }
  .navbar-toggler:focus {
    box-shadow: none;
  }
  

  .navbar-collapse {
    background-color: transparent;
    padding: 0.5rem 0;
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
    border: none;
  }
  
  .navbar-collapse .navbar-nav {
    align-items: stretch !important;
  }
  
  .navbar-collapse .nav-link {
    padding: 0.65rem 0.5rem !important;
    margin: 0.15rem 0 !important;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  

  .navbar-collapse .nav-link.active {
    background-color: var(--primary-light) !important;
    color: var(--primary-hover) !important;
  }
  
  @media (hover: hover) {
    .navbar-collapse .nav-link:hover {
      background-color: var(--primary-light) !important;
      color: var(--primary-hover) !important;
    }
  }
  
  .navbar-collapse .nav-link::after {
    display: none !important;
  }
  
  /* Style Badge inside mobile list link */
  .navbar-collapse .nav-badge {
    position: static !important;
    transform: none !important;
    margin-left: auto;
    font-size: 0.75rem !important;
  }
  
  /* Separator for actions section */
  .navbar-collapse .navbar-nav:last-child {
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
  
  /* Responsive Register button */
  .navbar-collapse .btn-nav-register {
    margin-left: 0 !important;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    display: block !important;
    padding: 0.65rem 1.5rem !important;
  }
  
  /* Profile dropdown sub-items styling */
  .navbar-collapse .dropdown-menu {
    background-color: #f8fafc;
    border: none;
    box-shadow: none;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
  }
  
  .navbar-collapse .dropdown-item {
    padding: 0.55rem 1rem !important;
    border-radius: 8px;
    font-weight: 500;
  }
}

