* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #f5f6fa;
}
.giftcards-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
}

.giftcards-section h2 {
  color: #433e7e;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 26px;
}

.giftcards-section .section-subtitle {
  color: #6b7280;
  margin-bottom: 18px;
  font-size: 14px;
}

.giftcards-section .section-desc {
  color: #1f2333;
  font-weight: 400;
  margin-bottom: 22px;
}

/* Search + sort row */
.search-sort-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0ac;
}

.search-input-wrap input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 30px;
  border: 1px solid #e0e0e6;
  outline: none;
  font-size: 14px;
}

.search-input-wrap input:focus {
  border-color: #433e7e;
}

.sort-dropdown {
  flex-shrink: 0;
}

.sort-dropdown .btn {
  border-radius: 30px;
  border: 1px solid #1f2333;
  color: #1f2333;
  font-weight: 700;
  padding: 10px 22px;
  white-space: nowrap;
}

/* Alphabet filter */
.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  justify-content: center;
}

.alphabet-filter button {
  border: 1px solid #e0e0e6;
  background: #fff;
  color: #1f2333;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.alphabet-filter button.all-btn {
  width: auto;
  padding: 0 16px;
}

.alphabet-filter button:hover {
  background: #433e7e;
  color: #fff;
}

.alphabet-filter button.active {
  background: #433e7e;
  color: #fff;
  border-color: #433e7e;
}

/* Gift card grid */
.giftcard-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  height: 100%;
  cursor: pointer;
  border: 1px solid #eeeeee;
  box-shadow: 0 5px 15px rgb(180, 175, 250);
  transition: 0.3s ease;
}

.giftcard-item:hover {
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  background: rgb(203 200 255 / 26%);
  transform: translateY(-3px);
}

.giftcard-item .discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #433e7e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 14px;
}

.giftcard-item .brand-logo {
  width: 100%;
  height: 70px;
  object-fit: contain;
  margin-bottom: 12px;
  margin-top: 8px;
}

.giftcard-item .brand-name {
  font-weight: 700;
  font-size: 15px;
  color: #1f2333;
  margin: 0;
}

@media (max-width: 767px) {
  .search-sort-row {
    flex-direction: column;
  }
  .sort-dropdown .btn {
    width: 100%;
  }
  .giftcards-section {
    padding: 20px;
  }

  .giftcard-item {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: 0px 0px 0px rgb(180 175 250 / 0%);
    transition: 0.3s ease;
  }
  .giftcard-item:hover {
    box-shadow: 0px 0px 0px rgb(255 255 255 / 0%);
    background: rgba(255, 255, 255, 0);
    transform: translateY(0px);
  }
  .giftcard-item img {
    width: 82px !important;
    height: 70px !important;
    object-fit: contain;
    /* padding: 10px 10px; */
    background: #f0f7ff;
    border-radius: 22px;
  }
  .giftcard-item .discount-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: #433e7e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;

    border-radius: 7px;
  }
}
