@import url(https://fonts.googleapis.com/css?family=Inter:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
@import url(https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);

::-webkit-scrollbar {
  height: 0;
}

:root {
  --primary: #ff9900;
  --primary-dark: #d47100;
  --white: #ffffff;
  --black: #000000;
  --light-grey: #eee;
  --green: #4bb543;
  --red: #bb2124;
  --grey: #808080;
  --food_grey: #e0e0e0;
}

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

a {
  text-decoration: none;
  font-family: inherit;
  color: inherit;
}

button {
  background-color: transparent;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input,
textarea {
  border: none;
  outline: none;
  font-family: inherit;
  letter-spacing: inherit;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  /* object-fit: contain; */
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--light-grey);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0.5px;
}

.container {
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

.wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  padding: 6px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: 48px;
}

.header-logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-logo_name {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

/* 
.header-logo {
  width: 80px;
  height: 36px;
  object-fit: cover; */
  /* background-color: var(--black); */
  /* border-radius: 6px;
  padding: 6px; */
/* } */

/* .header-logo svg {
  display: block;
  width: 100%;
  height: 100%;
} */

.main {
  flex: 1 1 auto;
}

.banner {
  width: 100%;
  aspect-ratio: 1672 / 941;
  height: auto;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.banner .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 12px;
}

.products {
  margin-top: 12px;
}

.products-search {
  width: 100%;
  height: 36px;
  background-color: var(--white);
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 6px;
  box-shadow: 0px 2px 4px 0px rgba(34, 60, 80, 0.1);
}

.products-search span {
  width: 20px;
  height: 20px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-search input {
  width: 100%;
  height: 100%;
  background-color: var(--white);
  border: none;
  outline: none;
  padding: 2px 6px;
}

.products-category {
  display: flex;
  gap: 10px;
  overflow-x: scroll;
}

.products-category_item {
  padding: 4px 6px;
  font-size: 16px;
  font-weight: 600;
  text-wrap: nowrap;
  transition: all 0.1s ease-in-out;
}

.products-category_item.active {
  color: var(--primary-dark);
  border-radius: 4px;
}

.products-category_item.active::after{
  content: "";
}

.products-list {
  margin-top: 16px;
  margin-bottom: 80px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card {
  width: 48%;
  border-radius: 8px;
  background-color: var(--food_grey);
  padding: 12px;
  position: relative;
}

.product-card_qty {
  color: var(--white);
  width: 22px;
  height: 22px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--primary);
  border-radius: 0 7px 0 60%;
}

.product-card_img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

.product-card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card_name {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}

.product-card_price {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.product-card_buttons {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.product-card_button_inc {
  width: 100%;
  padding: 4px 20px;
  border-radius: 6px;
  background-color: #bb2124;
  background-color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card_button_dec {
  width: 100%;
  padding: 4px 20px;
  border-radius: 6px;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer {
  width: 100%;
  padding: 14px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  background-color: var(--white);
  border-radius: 16px 16px 0 0;
  box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.2);
}

.footer-row {
  display: flex;
  justify-content: space-between;
}

.footer-text {
  font-size: 14px;
  text-transform: capitalize;
  color: var(--grey);
}

.footer-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.footer-button {
  width: 160px;
  height: 44px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--primary);
  text-transform: capitalize;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Product Card Interactive */
.product-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.product-card:active {
  transform: scale(0.98);
}

/* Lightbox Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.product-modal_content {
  position: relative;
  max-width: 440px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.product-modal.active .product-modal_content {
  transform: scale(1);
}

.product-modal_close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.product-modal_close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.product-modal_img_box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f3f4f6;
  overflow: hidden;
}

.product-modal_img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.product-modal_info {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.product-modal_info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.product-modal_info p {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary, #ff9900);
  margin: 0;
}

