@import url("https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Moulpali&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

:root {
  --primary-red: #e11d48;
  --bg-light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", "Kantumruy Pro", sans-serif;
}

body {
  height: 100vh;
  background-color: #f8fafc;
}

.container {
  background-color: var(--bg-light);
  margin: 0 auto;
  max-width: 440px;
  min-height: 100vh;
  width: 100%;
  position: relative;
  color: #1e293b;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

header {
  position: sticky;
  top: 0;
  background: white;
  backdrop-filter: blur(10px);
  z-index: 40;
  border-bottom: 1px solid #f1f5f9;
}
.hero {
  position: relative;
  padding: 0px 20px 0 20px;
}
.hero img {
  border-radius: 20px;
}
.hero button {
  position: absolute;
  color: rgb(255, 255, 255);
  background-color: rgb(0, 0, 0);
  padding: 20px 50px;

  top: 50%;
  font-size: 10px;
  font-weight: bold;
  left: 50%;
}
.nav {
  display: flex;
  padding: 15px 20px;
  justify-content: space-between;
  align-items: center;
}

.name {
  font-size: 20px;
  font-family: "Moulpali", sans-serif;
  color: var(--primary-red);
  letter-spacing: 1px;
}

/* Filter Bar Style - Redbox Inspired */
.filter-container {
  padding: 10px 0 15px 0;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
  display: none;
}

.filter-wrapper {
  display: flex;
  padding: 0 20px;
  gap: 10px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.filter-btn.active {
  background: var(--primary-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 15px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: transform 0.2s;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

/* .product-card:active {
  transform: scale(0.97);
} */

.img-container {
  width: 100%;
  height: auto;
  position: relative;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-title {
  font-size: 13px;
  font-weight: 600;
  height: 38px;
  overflow: hidden;
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-price {
  color: var(--primary-red);
  font-weight: 800;
  font-size: 16px;
}

.btn-buy {
  width: 100%;
  background: #1e293b;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Modal Overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
  align-items: flex-end;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #64748b;
}

.input-field {
  width: 100%;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
}

#floating-cart {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: #1e293b;
  color: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 45;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
@media (min-width: 600px) {
  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 15px;
  }
}
