:root {
  /* Modernized Color Palette */
  --dark-walnut: #2c1e16;
  --teak-brown: #9a6534;
  --antique-gold: #cba873;
  --warm-ivory: #faf6f0;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(44, 30, 22, 0.1);
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark-walnut);
  background-color: var(--warm-ivory);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Glassmorphism Utilities */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
}
.navbar.glassmorphism {
  /* Overriding standard bootstrap background if needed */
  background: rgba(255, 255, 255, 0.85) !important;
}
.navbar-brand {
  color: var(--dark-walnut) !important;
  font-size: 1.5rem;
  letter-spacing: 2px;
}
.nav-link {
  color: var(--dark-walnut) !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  margin: 0 10px;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--teak-brown) !important;
  text-decoration: none !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  overflow: hidden;
  margin-top: -76px; /* Offset for absolute/sticky nav */
  padding-top: 76px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--antique-gold) 0%, transparent 40%),
              radial-gradient(circle, var(--teak-brown) 0%, transparent 40%);
  background-position: 0 0, 100px 100px;
  background-size: 800px 800px, 600px 600px;
  opacity: 0.05;
  animation: float 20s infinite alternate linear;
}
@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(5%, 5%) rotate(5deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  border-radius: 20px;
}
.hero-section h1 {
  font-size: 4.5rem;
  color: var(--dark-walnut);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-section p {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary {
  background-color: var(--teak-brown);
  border: none;
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px; /* Pill shape */
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(154, 101, 52, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-primary:hover {
  background-color: var(--dark-walnut);
  box-shadow: 0 8px 25px rgba(44, 30, 22, 0.4);
  transform: translateY(-3px);
  color: var(--white);
}
.btn-outline-primary {
  color: var(--teak-brown);
  border: 2px solid var(--teak-brown);
  background-color: transparent;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background-color: var(--teak-brown);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(154, 101, 52, 0.4);
  transform: translateY(-2px);
}

/* Featured Categories */
.category-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--soft-shadow);
  transition: all 0.4s ease;
  cursor: pointer;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background-color: var(--antique-gold);
}
.category-card:hover h5 a {
  color: var(--white);
}
.category-card h5 a {
  color: var(--teak-brown);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Product Cards */
.product-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: var(--white);
  transition: all 0.4s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.03);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.product-card .card-img-top {
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .card-img-top {
  transform: scale(1.05);
}
.product-card .card-body {
  padding: 25px;
  background: var(--white);
  z-index: 2;
  position: relative;
}
.product-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}
.product-card .price {
  color: var(--antique-gold);
  font-weight: 700;
  font-size: 1.4rem;
}

/* Footer */
footer {
  background-color: var(--dark-walnut);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 30px;
  position: relative;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: 50px;
}
footer h4, footer h5 {
  color: var(--antique-gold);
  margin-bottom: 25px;
}
footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}
footer a:hover {
  color: var(--antique-gold);
  text-decoration: none;
}
footer .social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}
footer .social-icons a:hover {
  transform: translateY(-3px);
  color: var(--white);
}

/* Badges */
.badge-cart {
  background-color: var(--teak-brown);
  color: var(--white);
  font-size: 0.7rem;
  padding: 4px 7px;
  border-radius: 50%;
  position: relative;
  top: -12px;
  right: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Utilities */
.text-gold { color: var(--antique-gold); }
.text-teak { color: var(--teak-brown); }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem !important;
  }
  .hero-section p {
    font-size: 1rem !important;
    padding: 0 15px;
  }
  h2[style*="font-size: 2.5rem"] {
    font-size: 1.8rem !important;
  }
  footer {
    text-align: center;
  }
  footer .d-flex {
    justify-content: center;
    text-align: center;
  }
  footer .social-icons {
    justify-content: center;
  }
  .product-card .card-img-top {
    height: 220px;
  }
}

/* Login Page Styles */
.login-page {
  background: linear-gradient(rgba(26,26,26,0.6), rgba(26,26,26,0.8)), url('../images/logo/nusajati.jpeg') center/cover fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  border-top: 5px solid #D4AF37;
}
.login-page .form-control {
  border-radius: 8px;
  height: 50px;
  border: 1px solid #ced4da;
}
.login-page .form-control:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}
.btn-gold {
  background-color: #D4AF37;
  border-color: #D4AF37;
  color: #fff;
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 1px;
}
.btn-gold:hover {
  background-color: #b5952f;
  border-color: #b5952f;
  color: #fff;
}
