:root {
  --primary: darkorange;
  --bg: #010101;
  --bg-nav: rgba(0, 0, 0, 0.7);
  --text-color: #fff;
  --card-bg: #222;
  --navbar-bg: rgba(1, 1, 1, 0.8);
}

body.light-theme {
  --bg: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.7);
  --text-color: #000;
  --card-bg: #f0f0f0;
  --navbar-bg: rgba(255, 255, 255, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text-color);
  min-height: 100vh;
}

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #222;
  transform: translateY(-100%);
  z-index: 10000;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

#alert-container {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
}

.alert {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  display: none;
}
.alert.error {
  background-color: #f44336;
  color: #fff;
}
.alert.success {
  background-color: #4CAF50;
  color: #fff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 4px 6px black;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  font-style: italic;
}
.navbar .navbar-logo span {
  color: var(--primary);
}
.nav-links a {
  color: var(--text-color);
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
  transition: all 0.2s ease-in-out;
  border: 8px solid transparent;
}
.nav-links a:hover {
  border: 2px solid var(--primary);
  border-radius: 4rem;
  background-color: var(--primary);
  box-shadow: 0 0 15px orange;
  border-width: 8px;
}
.nav-links a:active {
  transform: scale(1.05);
  background-color: var(--primary);
}
.navbar-extra {
  display: flex;
  align-items: center;
}
.navbar-extra a,
.navbar-extra button {
  color: var(--text-color);
  margin: 0 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar-extra a:hover,
.navbar-extra button:hover {
  color: var(--primary);
}
.toggle-theme {
  background: none;
  border: none;
  cursor: pointer;
}

.footer {
  position: relative;
  background-color: var(--primary);
  box-shadow: 0 -4px 6px black;
  color: var(--text-color);
  overflow: hidden;
}

body.light-theme .footer {
  background-color: #f0f0f0;
}

.footer-content {
  position: relative;
  padding: 1.5rem 7%;
  text-align: center;
}

.footer .footer-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer .footer-content p{
  font-weight: 1000;
}

.footer .footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}

.footer .footer-links a:hover {
  color: #35353D;
}
.footer .footer-links a::after{
  content: '';
  display: block;
  padding-bottom: 0.4rem;
  border-bottom: 0.2rem solid var(--bg);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.footer .footer-links a:hover::after{
  transform: scaleX(0.5);
}

body.light-theme .footer .footer-links a:hover{
  color: var(--primary);
}

body.light-theme .footer .footer-links a::after{
  content: '';
  display: block;
  padding-bottom: 0.4rem;
  border-bottom: 0.2rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

body.light-theme .footer .footer-links a:hover::after{
  transform: scaleX(0.5);
}

#hamburger{
  display: none;
}

#cart {
  position: relative;
}
#cart-count:before {
  visibility: hidden;
}
#cart-count:after {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: transparent;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 50%;
  padding: 2px 6px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1607478900766-efe13248b125?q=80&w=987&auto=format&fit=crop&ixlib=rb-4.0.3');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: '';
  display: inline-block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, var(--bg) 8%, rgba(255,255,255,0) 50%);
}
.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
}
.hero .content h1 {
  font-size: 5em;
  color: var(--text-color);
  text-shadow: 1px 1px 3px rgba(1,1,3,0.5);
  line-height: 1.2;
}
.hero .content h1 span {
  color: var(--primary);
}
.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 200;
  text-shadow: 1px 1px 3px rgba(1,1,3,0.5);
  color: var(--text-color);
}
.btn-hero {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: var(--text-color);
  background-color: var(--card-bg);
  border-radius: 2rem;
  box-shadow: 1px 1px 3px rgba(1,1,3,0.5);
  transition: all 0.3s ease;
}
.btn-hero:hover {
  background-color: #ff6600;
  box-shadow: 0 0 10px rgba(255,102,0,0.8),
              0 0 20px rgba(255,102,0,0.6);
  transform: translateY(-2px);
}
.btn-hero:active {
  background-color: var(--primary);
  box-shadow: 0 0 5px rgba(204,82,0,0.8),
              0 0 10px rgba(204,82,0,0.6);
  transform: translateY(2px);
}

.about, .menu, .contact {
  padding: 8rem 7% 1.4rem;
}
.about h2, .menu h2, .contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}
.about h2 span, .menu h2 span, .contact h2 span {
  color: var(--primary);
}
.about .row {
  display: flex;
  align-items: center;
}
.about .about-img {
  flex: 1 1 45rem;
}
.about .about-img img {
  width: 100%;
  border-radius: 4rem;
}
.about .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}
.about .content h3 {
  font-size: 2rem;
  margin-top: 1rem;
  color: var(--text-color);
}
.about .content p {
  font-size: 1.45rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.menu p, .contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-weight: 200;
  line-height: 1.6;
  color: var(--text-color);
}
.menu .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 5rem;
}
.menu-card {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 2px 5px black;
  transition: transform 0.3s ease;
  text-align: center;
  width: calc(33.33% - 20px);
  color: var(--text-color);
  position: relative;
}
.menu-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 5px 7px var(--primary);
  border: 2px solid var(--primary);
}
.menu-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 25%;
}
.menu-card .menu-card-tittle {
  margin: 1rem auto 0.5rem;
}
.add-to-cart,
.favorite-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.add-to-cart {
  background-color: var(--primary);
  color: #fff;
  border-radius: 1rem;
}
.add-to-cart:hover {
  background-color: darkorange;
}
.favorite-button {
  margin-top: 0.5rem;
  padding: 0.4rem;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s ease;
}
.favorite-button.favorited {
  color: var(--primary);
}

.like-dislike-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 0.5rem;
}

.like-button,
.dislike-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.like-button:hover,
.dislike-button:hover {
  color: var(--primary);
}
.like-button span,
.dislike-button span {
  margin-left: 5px;
}

.filter-dropdown {
  margin: 1rem auto;
  text-align: center;
  border-radius: 2rem;
}
.filter-dropdown select {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border: 2px solid var(--primary);
  border-radius: 1rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  outline: none;
  transition: background-color 0.3s ease;
}
.filter-dropdown select:hover {
  background-color: darkorange;
}

.contact .row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 2rem;
  background-color: var(--card-bg);
  gap: 1rem;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.5rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 7px black;
}
.contact .map {
  flex: 1 1 45rem;
  width: 100%;
  object-fit: cover;
  border-radius: 2rem;
}
.contact form {
  flex: 1 1 45rem;
  padding: 1rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.contact form .input-group {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  background-color: var(--bg);
  border: 1px solid #eee;
  margin-left: 1rem;
  border-radius: 2rem;
  position: relative;
}
.contact form .input-group input {
  width: 100%;
  padding: 1rem;
  font-size: 1.7rem;
  background: none;
  color: var(--text-color);
}
.text-area {
  width: 100%;
  padding: 3rem;
  font-size: 1rem;
  background: none;
  color: var(--text-color);
}
.contact form .btn {
  margin-top: 3rem;
  display: inline-block;
  padding: 1rem 4rem;
  font-size: 1.7rem;
  border-radius: 3rem;
  color: var(--text-color);
  background-color: var(--bg);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.btn:hover {
  background-color: var(--primary) !important;
  box-shadow: 0 5px 7px black;
  transform: translateY(-0.5rem);
}

.error {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background-color: var(--card-bg);
  color: var(--text-color);
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 10001;
  display: flex;
  flex-direction: column;
}
.cart-panel.active {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--primary);
  color: #fff;
}
.cart-header h3 {
  margin: 0;
}
.cart-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #444;
}
.cart-item .remove-item {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}
.cart-footer {
  padding: 1rem;
  border-top: 1px solid #444;
  text-align: center;
}
.cart-footer p {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}
.cart-footer .btn{
  border-radius: 2rem;
  padding: 1rem ;
}

.favorite-content {
  padding: 7rem 7% 2rem;
  min-height: calc(100vh - 100px);
}
.favorite-content h2 {
  text-align: center;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}
.favorite-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.favorite-item {
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  width: 300px;
}
.favorite-item img.favorite-img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.favorite-item .remove-favorite {
  margin-top: 0.5rem;
  padding: 0.4rem;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.3s ease;
}

#hamburger {
}

@media (max-width: 1336px) {
  html { font-size: 75%; }
}
@media (max-width: 768px) {
  html { font-size: 62.5%; }
  #hamburger { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 30rem;
    height: 100vh;
  }
  .nav-links.active { right: 0; }
  .about .row { flex-wrap: wrap; }
  .about .about-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }
  .about .content { padding: 0; }
  .about .content h3 { margin-top: 1rem; font-size: 2rem; }
  .about .content p { font-size: 1.6rem; }
  .menu .row { flex-direction: column; align-items: center; }
  .menu-card { width: 80%; }
  .contact .row { flex-direction: column; }
  .contact .map { height: 300px; }
  .contact form { margin-top: 2rem; }
  .search-container {
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    background-color: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 0.5rem;
    display: none;
    z-index: 9998;
  }
}
@media (max-width: 450px) {
  html { font-size: 55%; }
  #hamburger { display: inline-block;}
  .nav-links {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: var(--bg-nav);
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }
  .search-container {
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    background-color: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 0.5rem;
    display: none;
    z-index: 9998;
  }
}
.search-container {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  background-color: var(--card-bg);
  border: 1px solid var(--primary);
  border-radius: 5px;
  padding: 0.5rem;
  display: none;
  z-index: 9998;
}
.search-container input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  background: transparent;
  color: var(--text-color);
}
.search-results {
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}
.search-results div {
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--primary);
}
.search-results div:hover {
  background-color: darkorange;
  color: #fff;
}

