:root {
  --primary-color: #31170c;
  --accent-color: #F5A623;
  --surface-color: #fff8f6;
  --on-surface-color: #1f1b19;
  --on-surface-variant: #504440;
  --glass-bg: rgba(255, 248, 246, 0.85);
  --glass-border: rgba(74, 44, 31, 0.05);
  --neu-bg: #fff8f6;
  --neu-shadow: -5px -5px 10px #ffffff, 5px 5px 10px rgba(225, 216, 214, 0.5);
  --neu-shadow-inset: inset -3px -3px 6px #ffffff, inset 3px 3px 6px rgba(225, 216, 214, 0.5);
}

body {
  background-color: var(--surface-color);
  color: var(--on-surface-color);
  font-family: 'Inter', sans-serif;
  padding-top: 80px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-weight: 700;
}

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



/* Glassmorphism Navbar */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
}

/* Neumorphism Cards */
.neu-card {
  background-color: var(--neu-bg);
  box-shadow: var(--neu-shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.neu-card:hover {
  transform: translateY(-5px);
}

/* Neumorphism Inputs */
.neu-input {
  background-color: var(--neu-bg);
  box-shadow: var(--neu-shadow-inset);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  color: var(--on-surface-color);
}

.neu-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--accent-color), var(--neu-shadow-inset);
}

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: white;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  box-shadow: var(--neu-shadow);
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary-custom:hover {
  background-color: #4a2c1f;
  color: white;
  transform: scale(0.98);
}

.btn-accent-custom {
  background-color: var(--accent-color);
  color: white;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-accent-custom:hover {
  background-color: #e09612;
  color: white;
  transform: scale(0.98);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuAbfAqkUuG0sl_w6MFtIN5r1l4LE_XehQWUENg-xG2SAFtpdrMj-JbLqh-A53GQ6QfJ2VE4LNwfLeK91N2eHjjiQ3CM24-gMAhnXHVYaMpIGmyEygRpAkGEksQFgj2Z8d9RqllSBeEyn7Z4iYku0ie3UwkRmi0IgEOYrezgMxepiWYdP_U-V0Pj8NBoUYtOzF_T8bG6mo8FjU2y-SBVXM1ZH5HgYz5zr6aMyJuQMnVf8i6fws49wW4Rnwsfs6B13qYPxBzkbraHAjtG');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 248, 246, 0.9), transparent);
  z-index: 1;
}

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

/* Floating Elements */
.floating-element {
  position: absolute;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.float-badge {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: fit-content;
}

.badge-1 { top: 10%; right: 5%; animation-delay: 0s; }
.badge-2 { bottom: 20%; right: 15%; animation-delay: 2s; }
.badge-3 { top: 40%; right: 20%; animation-delay: 4s; }

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

/* Trust Section */
.trust-badges {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  box-shadow: var(--neu-shadow);
}


/* Product Cards */
.product-img-wrapper {
  height: 220px;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  position: relative;
}

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

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

.badge-custom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 10;
}

.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9e1d8;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
}

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

/* Form Error Validation */
.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.neu-input.is-invalid {
  box-shadow: 0 0 0 1px #dc3545, var(--neu-shadow-inset);
}

/* Spinner Skeleton */
.skeleton {
  background: #e0d8d6;
  background: linear-gradient(90deg, #e0d8d6 8%, #f0e8e6 18%, #e0d8d6 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* Admin Sidebar */
.admin-sidebar {
  min-height: calc(100vh - 80px);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(74, 44, 31, 0.05);
}

.nav-link-custom {
  color: var(--on-surface-variant);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
  background-color: var(--primary-color);
  color: white;
}

/* Admin Table */
.table-custom {
  background-color: transparent;
}

.table-custom th {
  border-bottom: 2px solid var(--glass-border);
  color: var(--on-surface-variant);
  font-weight: 600;
}

.table-custom td {
  border-bottom: 1px solid var(--glass-border);
  vertical-align: middle;
}

/* ==========================================
   CUSTOM TOAST NOTIFICATIONS
   ========================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-custom {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}

.toast-custom.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-custom.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon { background-color: #d1fae5; color: #059669; }
.toast-error .toast-icon { background-color: #fee2e2; color: #dc2626; }
.toast-info .toast-icon { background-color: #e0f2fe; color: #0284c7; }

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
}

.toast-close {
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--on-surface-color);
}
