:root {
  --primary: #e53935;
  --accent: #ffcdd2;
  --dark: #1f1f1f;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --transition: 300ms ease;
  --radius: 12px;
  /* --glass: rgba(255, 255, 255, 0.6); */
}

:root.dark {
  --primary: #e53935;
  --accent: #ffcdd2;
  --dark: #121212;
  --light-bg: #0f0f0f;
  --white: #e9e9e9;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Open Sans", sans-serif;
  color: var(--dark);
  background: var(--light-bg);
  transition:
    background var(--transition),
    color var(--transition);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
}

/* Navbar */
.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--dark);
}
.brand-highlight {
  color: var(--primary);
  margin-left: 4px;
}
.navbar {
  transition: box-shadow 200ms;
}
.navbar .nav-link {
  position: relative;
  padding: 0.6rem 1rem;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 220ms;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 60%;
}
.btn-ghost {
  background: transparent;
  border: none;
}
.order-now {
  border-radius: 999px;
}

.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(
    135deg,
    rgba(229, 57, 53, 0.06),
    rgba(255, 205, 210, 0.03)
  );
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  color: var(--dark);
}
.hero-section .lead {
  max-width: 520px;
}
.hero-image-wrap {
  display: inline-block;
  transform: translateY(-10px);
}
.hero-image {
  width: 80%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(31, 31, 31, 0.12);
  transition: transform 600ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.hero-image:hover {
  transform: translateY(-6px) scale(1.02);
}
.decor-shapes::before,
.decor-shapes::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
/* .decor-shapes::before {
  width: 220px;
  height: 220px;
  background: var(--primary);
  left: -40px;
  top: 10px;
}
.decor-shapes::after {
  width: 140px;
  height: 140px;
  background: var(--accent);
  left: 20px;
  top: 120px;
} */

/* Categories */
.section-header h2 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 6px;
}
.cat-card {
  background: var(--white);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(31, 31, 31, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.cat-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 400ms;
}
.cat-card h6 {
  margin-top: 10px;
  font-weight: 600;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(31, 31, 31, 0.12);
}
.cat-card:hover img {
  transform: scale(1.06);
}

.bg-light {
  background: var(--white);
}
.snack-card {
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.snack-card .img-wrap {
  overflow: hidden;
}
.snack-card .card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 450ms;
}
.snack-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(31, 31, 31, 0.12);
}
.snack-card:hover .card-img {
  transform: scale(1.08);
}
.card-title {
  font-family: "Poppins", sans-serif;
}
.price {
  font-weight: 700;
  color: var(--primary);
}
.rating i {
  margin-right: 4px;
}

.feature {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.4)
  );
  border-radius: 14px;
}
.feature-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
}

.daily-deals {
  background: var(--primary);
  color: var(--white);
}

.counters .counter {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
}

.testimonial {
  border-radius: 12px;
}
.testimonial-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary);
}
.card .form-control {
  border-radius: 10px;
}

.footer a {
  color: inherit;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-image {
    width: 90%;
  }
  .newsletter .form-control {
    width: 65%;
  }
}

/* Dark mode overrides */
:root.dark body,
:root.dark .bg-light {
  background: #0f0f0f;
}
:root.dark .navbar,
:root.dark .card {
  background: #131313;
}
:root.dark .text-muted {
  color: #bdbdbd;
}
:root.dark .footer {
  background: #0b0b0b;
}
:root.dark a {
  color: var(--accent);
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 700ms forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

.text-warning {
  color: #ffc107;
}

:focus {
  outline: 3px solid rgba(229, 57, 53, 0.15);
  outline-offset: 3px;
}
