/* ===== Search Section ===== */
.search-section {
  position: relative;
  background: linear-gradient(135deg, #e84b3a 0%, #ff6b35 50%, #ffb347 100%);
  padding: 0 0 20px;
}

.search-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Ccircle cx='350' cy='30' r='80' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='30' cy='160' r='60' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.search-box {
  position: relative;
  padding: 20px 16px;
}

.search-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.search-form {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fafafa;
}

.search-icon {
  font-size: 16px;
  margin-right: 8px;
}

.search-input {
  flex: 1;
  font-size: 15px;
  color: #333;
  background: transparent;
}

.search-input::placeholder {
  color: #bbb;
}

.search-dates {
  display: flex;
  border: 1.5px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.date-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: #fafafa;
}

.date-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
}

.date-value {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.date-divider {
  width: 1px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
}

.search-extra {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.guest-select {
  flex: 1;
  border: 1.5px solid #f0f0f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #666;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
}

.search-btn {
  display: block;
  background: linear-gradient(135deg, #e84b3a, #ff7961);
  color: #fff;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(232,75,58,0.35);
  letter-spacing: 1px;
}

/* ===== Category ===== */
.category-section {
  background: #fff;
  padding: 16px;
  margin-bottom: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
}

.cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cat-red { background: #fff0ee; }
.cat-orange { background: #fff8ee; }
.cat-blue { background: #eef4ff; }
.cat-green { background: #eeffee; }
.cat-purple { background: #f3eeff; }
.cat-pink { background: #ffecf5; }
.cat-yellow { background: #fffbe0; }
.cat-teal { background: #eafaf6; }

/* ===== Flash Section ===== */
.flash-section {
  background: #fff;
  margin-bottom: 10px;
}

.countdown {
  font-size: 12px;
  color: #e84b3a;
  margin-left: 8px;
}

.countdown b {
  font-weight: 700;
}

.flash-scroll {
  overflow-x: auto;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.flash-scroll::-webkit-scrollbar {
  display: none;
}

.flash-list {
  display: flex;
  gap: 12px;
  width: max-content;
}

.flash-card {
  width: 150px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.flash-img {
  position: relative;
  height: 100px;
}

.flash-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e84b3a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.flash-info {
  padding: 8px 10px;
}

.flash-name {
  font-size: 12px;
  color: #333;
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.now-price {
  font-size: 16px;
  font-weight: 700;
  color: #e84b3a;
}

.old-price {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
}

/* ===== Recommend ===== */
.recommend-section {
  margin-bottom: 10px;
}

/* ===== Banner ===== */
.banner-section {
  padding: 0 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-card {
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.banner-member {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.banner-merchant {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.banner-text {
  position: relative;
  z-index: 1;
}

.banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.banner-btn {
  display: inline-block;
  background: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.banner-merchant .banner-btn {
  color: #f7971e;
}

.banner-member .banner-btn {
  color: #667eea;
}

.banner-deco {
  font-size: 52px;
  opacity: 0.7;
}

/* ===== Advantage ===== */
.advantage-section {
  background: #fff;
  padding: 20px 16px;
  margin-bottom: 10px;
}

.adv-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: #222;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.adv-item {
  text-align: center;
}

.adv-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.adv-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.adv-desc {
  font-size: 10px;
  color: #999;
  line-height: 1.4;
}
