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

body {
  background-color: #d5d4d4;
}

.header {
  background-color: #000;
  height: 80px;
  display: flex;
  align-items: center;
}
.header__nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 1rem;
}
.header__btn, .header__carrito {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.header__btn img, .header__carrito img {
  width: 30px;
  height: auto;
}
.header__logo img {
  border-radius: 50%;
  height: 70px;
  margin-top: 0;
}
.header__carrito {
  position: relative;
}
.header__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e63946;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
  display: none;
}
.header__badge.is-visible {
  display: inline-block;
}

.main {
  background: url(../img/banner.jpg) no-repeat center 25%/cover;
}
.main__content {
  font-size: 2rem;
  padding: 6rem 1rem 2rem;
  color: #e9e9e9;
  text-align: center;
}
.main__h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.main__p {
  margin-top: 1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  text-align: center;
  gap: 1.25rem;
}
.products__card {
  padding: 1rem;
  border: 1px solid #bdbdbd;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.products__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.products__card:hover .products__img {
  transform: scale(1.04);
}
.products__img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.products__title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.25rem 0 0.5rem;
}
.products__price {
  font-weight: 700;
  font-size: 15px;
  color: #e63946;
  margin-bottom: 12px;
}
.products__btn {
  background-color: #000;
  color: #d5d4d4;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.05s ease;
}
.products__btn:hover {
  opacity: 0.9;
}
.products__btn:active {
  transform: scale(0.98);
}
.products__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.products__tools {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}
.products__search {
  width: 100%;
  max-width: 420px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.cart.is-open {
  transform: translateX(0);
}
.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
}
.cart__title {
  font-size: 1.25rem;
}
.cart__close {
  background: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}
.cart__items {
  padding: 1rem;
  overflow: auto;
  flex: 1;
  display: grid;
  gap: 0.75rem;
}
.cart__item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.5rem;
}
.cart__thumb {
  width: 64px;
  height: 64px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
}
.cart__meta {
  flex: 1;
  text-align: left;
}
.cart__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart__qty button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fafafa;
  cursor: pointer;
}
.cart__footer {
  padding: 1rem;
  border-top: 1px solid #e5e5e5;
  display: grid;
  gap: 0.75rem;
}
.cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
}
.cart__action {
  display: flex;
  gap: 0.5rem;
}
.cart__clear, .cart__pay {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.cart__clear {
  background: #eee;
}
.cart__pay {
  background: #000;
  color: #fff;
}

.cart__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}

.cart.is-open ~ .cart__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 80vw);
  height: 100dvh;
  background: #fff;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.menu.is-open {
  transform: translate(0);
}
.menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
}
.menu__list {
  list-style: none;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
.menu__list a {
  text-decoration: none;
  color: #000;
  font-size: 1.1rem;
}
.menu__list a:hover {
  color: #e63946;
}

.menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 190;
}

.menu.cart.is-open ~ .menu__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.products__no-results {
  grid-column: 1/-1;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-top: 1rem;
}/*# sourceMappingURL=style.css.map */