@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Rich & Vibrant Palette */
  --primary: #059669; /* Rich Emerald */
  --primary-hover: #047857; /* Deep Emerald */
  --primary-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --secondary: #F59E0B; /* Vibrant Gold / Amber */
  --secondary-hover: #D97706; /* Deep Amber */
  --accent: #FDE68A; /* Soft Turmeric highlight */
  
  /* Layout & Backgrounds */
  --bg-color: #F8FAFC; /* Crisp off-white */
  --surface: #ffffff;
  --header-bg: rgba(6, 78, 59, 0.95); /* Deep dark forest with opacity for glass */
  --header-solid: #064E3B; /* Solid deep forest */
  
  /* Text */
  --text-main: #1E293B; /* Deep Charcoal */
  --text-light: #475569; /* Slate gray */
  --border-color: #E2E8F0;
  --danger: #EF4444;
  
  /* Effects */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 50px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Fonts */
  --font-main: 'DM Sans', -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* LAYOUT */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER & NAVIGATION (Glassmorphism) */
app-header {
  display: block;
  width: 100%;
}

header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 85px;
  padding: 10px 0;
}

.header-nav {
  padding: 0 4%;
}

header .container {
  max-width: 100% !important;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-brand img {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); /* Subtle gold glow */
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

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

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
}

.cart-icon-wrapper:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
  text-transform: capitalize;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-danger {
  background: transparent;
  border: 2px solid var(--danger);
  color: var(--danger);
}

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

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Change to cover for immersive feel */
  opacity: 0;
  z-index: 0;
  transition: opacity 1.5s ease-in-out, transform 10s ease;
}

.hero-bg.active {
  opacity: 0.6;
  transform: scale(1.05); /* Slow zoom effect */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(5, 150, 105, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

/* Glassmorphism Hero Box */
.hero-glass-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--glass-shadow);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
  color: var(--accent);
  display: inline-block;
  font-style: italic;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CARDS & PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* PRODUCT SLIDER */
.product-slider-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 20px 0 40px;
}

.product-slider {
  display: flex;
  gap: 30px;
  overflow-x: visible;
  width: max-content;
}

.product-slider .product-card {
  width: 280px;
  flex-shrink: 0;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Glass Hover Effect for Cards */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.2);
}

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

.product-image-wrap {
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #F1F5F9;
  margin-bottom: 20px;
}

.product-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 15px;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.15) rotate(-2deg);
}

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--header-solid);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-rating {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
  padding: 10px 15px;
  font-size: 0.95rem;
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
  color: var(--header-solid);
}

.section-title span {
  color: var(--secondary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 1.15rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* FEATURES / WHY CHOOSE US */
.feature-card {
  padding: 40px 30px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-card h3 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* FORMS */
.form-group {
  margin-bottom: 25px;
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #F8FAFC;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* TABLE */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: #F1F5F9;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* MISC UTILITIES */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }

/* ANIMATIONS */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.toast {
  background: var(--surface);
  color: var(--text-main);
  padding: 18px 30px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.toast.success { border-color: var(--primary); }
.toast.error { border-color: var(--danger); }

/* MOBILE RESPONSIVE */
.bottom-nav {
  display: none;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .section { padding: 60px 0; }
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--header-solid);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    height: 65px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    gap: 4px;
    position: relative;
    flex: 1;
    min-width: 0;
  }

  .bottom-nav-item svg {
    stroke: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
  }

  .bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--secondary);
  }

  .bottom-nav-item:hover svg, .bottom-nav-item.active svg {
    stroke: var(--secondary);
  }

  .bottom-nav-item .cart-badge {
    top: -4px;
    right: 12px;
  }

  .mobile-toggle {
    display: none !important;
  }
  
  .nav-links {
    display: none !important;
  }

  body {
    padding-bottom: 75px !important;
  }

  .hero-glass-box {
    padding: 40px 20px;
    margin: 0 15px;
  }
  
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
