.benefits-container {
  max-width: 1354px;
  margin: 5rem auto;
  padding: 0 20px;
  font-family: "Montserrat", sans-serif;
}

.benefits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}
@media (max-width: 768px) {
  .benefits-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.benefits-header .first-h4 {
  font-size: 48px;
  color: #000;
  font-weight: bold;
}
@media (max-width: 768px) {
  .benefits-header .first-h4 {
    font-size: 28px;
  }
}

.benefits-header .highlight {
  color: #E72172;
}

.highlight {
  color: #E72172;
}

.benefits-filters {
  margin: 2rem 0;
}

.search-and-filter {
  display: flex;
  flex-direction: row;
  gap: 100px;
}
@media (max-width: 768px) {
  .search-and-filter {
    flex-direction: column;
    gap: 10px;
  }
}

.search-input {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .filters-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 24px;
    padding-bottom: 10px;
  }
}

.filter {
  background: #f0f0f0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.filter.active {
  background-color: #FFE1ED;
  color: #E72172;
}

.filters-sorting {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.filters-sorting select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px !important;
  cursor: pointer;
}

.filters-sorting::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 10px;
  transform: translateY(50%);
  background-image: url("/img/arrow-down.svg");
  background-repeat: no-repeat;
  background-size: contain;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
@media (max-width: 500px) {
  .filters-sorting::after {
    right: 90px;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 80px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .benefits-grid {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
}

.benefit-card img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 768px) {
  .benefit-card img {
    height: 90px;
  }
}

.points {
  background: #FFE1ED;
  color: #E72172;
  padding: 8px;
  font-weight: bold;
  margin-top: -4px;
  position: relative;
  width: 40%;
  margin-left: 15px;
  top: -13px;
  font-size: 24px;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .points {
    font-size: 16px;
    width: 72%;
  }
}

.product-title {
  font-weight: 500;
  margin: 10px 0 5px;
  text-align: left;
  padding-left: 15px;
  color: #000;
  font-size: 24px;
}
@media (max-width: 768px) {
  .product-title {
    font-size: 15px;
  }
}

.product-brand {
  color: #5C5C5C;
  margin-bottom: 10px;
  text-align: left;
  font-size: 16px;
  padding-left: 15px;
}
@media (max-width: 768px) {
  .product-brand {
    font-size: 14px;
  }
}

.search-input-div {
  width: 72%;
}
@media (max-width: 768px) {
  .search-input-div {
    width: 100%;
  }
}

.redeem-link {
  text-decoration: none;
  color: #E72172;
  font-weight: 500;
  padding-left: 15px;
  text-align: left;
  font-size: 16px;
  display: block;
  transition: transform 0.3s ease;
  width: 25%;
}
@media (max-width: 768px) {
  .redeem-link {
    width: 54%;
    font-size: 15px;
  }
}
.redeem-link img {
  transition: transform 0.3s ease;
  max-width: 16px;
  max-height: 16px;
}
@media (max-width: 768px) {
  .redeem-link img {
    max-width: 13px;
    max-height: 13px;
  }
}

.redeem-link:hover {
  text-decoration: none;
  transform: scale(1.08);
  color: #E72172;
}

.benefits-container.blurred {
  filter: blur(5px);
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(139, 139, 139, 0.6);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
}

.card-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 101;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.close-card-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.close-card-btn:hover {
  transform: scale(1.11);
}

.close-card-btn img {
  width: 44px;
  height: 44px;
}

.card-wrapper.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#custom-card {
  background: white;
  border: none;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.custom-card {
  width: 551px;
  max-width: 90%;
  height: auto;
  min-height: 450px;
  max-height: 90vh;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: #fff;
  z-index: 102;
  position: relative;
  margin: auto;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  top: auto !important;
}
@media (max-width: 600px) {
  .custom-card {
    min-height: 200px;
  }
}
.custom-card span {
  font-size: 24px;
}
@media (max-width: 768px) {
  .custom-card span {
    font-size: 20px;
  }
}

.card-wrapper.active .custom-card {
  transform: translateY(0px) scale(1);
  opacity: 1;
}

.custom-card:hover {
  transform: scale(1.03);
}

.custom-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-card-body {
  padding: 50px;
}

.custom-card-title {
  font-size: 32px;
  margin: 16px 0 8px;
  color: #333;
}
@media (max-width: 768px) {
  .custom-card-title {
    font-size: 24px;
  }
}

.custom-card-text {
  color: #666;
  margin-bottom: 40px;
  margin-top: 16px;
}

.custom-btn {
  display: inline-block;
  padding: 22px 0;
  background-color: #E72172;
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.custom-btn:hover {
  text-decoration: none;
  transform: scale(1.03);
}

.my-benefits-title {
  font-size: 48px;
  font-weight: bold;
  margin-top: 80px;
  color: #000;
}
@media (max-width: 768px) {
  .my-benefits-title {
    font-size: 28px;
    margin-top: 32px;
  }
}

.no-benefits-title {
  text-align: left;
  font-size: 48px;
  font-weight: bold;
  color: #000;
  margin-top: 80px;
}
@media (max-width: 768px) {
  .no-benefits-title {
    font-size: 28px;
    margin-top: 32px;
  }
}

.no-benefits-subtitle {
  font-size: 40px;
  margin: 40px 0;
  color: #858585;
}
@media (max-width: 768px) {
  .no-benefits-subtitle {
    font-size: 24px;
  }
}

.btn-benefits {
  margin-bottom: 100px;
  padding: 20px 154px;
  align-items: center;
}
@media (max-width: 768px) {
  .btn-benefits {
    font-size: 16px;
    width: 100%;
    padding: 22px 0;
  }
}