* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px 16px;
  min-height: 100vh;
  background: radial-gradient(
    circle at 0% 0%,
    #ffffff 0,
    #ffdddd 32%,
    #ffcfcf 55%,
    #ffe5e5 100%
  );
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #0b1220;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.wrap {
  width: 100%;
  max-width: 430px;
}

.card {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(30px) saturate(160%);
  border-radius: 28px;
  padding: 20px 18px 92px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.13),
    0 0 0 0.5px rgba(148, 163, 184, 0.55) inset;
  animation: cardIn 0.4s ease-out;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.festival-title {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #0b1220;
}
.countdown-tag {
  display: inline-block;
  background: rgba(229, 199, 70, 0.3);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge img {
  width: 3.5em;
  height: 3.5em;
}

.tabs {
  margin: 16px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.015);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.tab {
  flex: 1 1 calc(33.33% - 8px);
  padding: 8px 4px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: #475569;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.22) inset;
  transition: background 0.15s, transform 0.08s, box-shadow 0.15s, color 0.15s;
  font-weight: 500;
}
.tab.categoryTab {
  flex: 1 1 calc(50% - 8px);
}
.tab.categoryTab:first-child {
  flex-basis: 100%;
}
.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.7);
}
.tab.active {
  background: #ffeeee;
  color: #111827;
  border-color: rgb(229, 9, 20);
  box-shadow: 0 0 0 1px rgb(229, 9, 20) inset;
  font-weight: 600;
}
.tab.active .tab-dot {
  background: rgb(201, 18, 27);
}
.tab:active {
  transform: scale(0.97);
}

.item {
  padding: 8px 0 6px;
}
.left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.logo {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}
.logo.subcategory_0 {
  background: radial-gradient(circle at 30% 0, #fecaca, #ef4444, #991b1b);
}
.logo.subcategory_1 {
  background: radial-gradient(circle at 30% 0, #bfdbfe, #2563eb, #1e3a8a);
}
.logo.subcategory_2 {
  background: radial-gradient(circle at 30% 0, #bbf7d0, #22c55e, #166534);
}
.logo.subcategory_3 {
  background: radial-gradient(circle at 30% 0, #c7d2fe, #6366f1, #4338ca);
}
.logo.subcategory_4 {
  background: radial-gradient(circle at 30% 0, #e5e7eb, #64748b, #0f172a);
}
.logo.subcategory_5 {
  background: radial-gradient(circle at 30% 0, #ddd6fe, #8b5cf6, #4c1d95);
}
.logo.subcategory_6 {
  background: radial-gradient(circle at 30% 0, #fde68a, #f59e0b, #b45309);
}
.logo.subcategory_7 {
  background: radial-gradient(circle at 30% 0, #fecdd3, #f43f5e, #9f1239);
}
.logo.subcategory_8 {
  background: radial-gradient(circle at 30% 0, #e5e7eb, #9ca3af, #111827);
}
.logo.subcategory_9 {
  background: radial-gradient(circle at 30% 0, #bfdbfe, #3b82f6, #1e3a8a);
}
.logo.subcategory_10 {
  background: radial-gradient(circle at 30% 0, #fecaca, #ef4444, #7f1d1d);
}
.logo.subcategory_11 {
  background: radial-gradient(circle at 30% 0, #dbeafe, #2563eb, #991b1b);
}
.logo.subcategory_12 {
  background: radial-gradient(circle at 30% 0, #fecaca, #ef4444, #111827);
}
.logo.subcategory_13 {
  background: radial-gradient(circle at 30% 0, #e5e7eb, #6b7280, #111827);
}
.logo.subcategory_14 {
  background: radial-gradient(circle at 30% 0, #d1fae5, #10b981, #064e3b);
}
.logo.subcategory_15 {
  background: radial-gradient(circle at 30% 0, #bfdbfe, #2563eb, #991b1b);
}
.logo.subcategory_16 {
  background: radial-gradient(circle at 30% 0, #fde68a, #f59e0b, #92400e);
}
.logo.subcategory_17 {
  background: radial-gradient(circle at 30% 0, #fed7aa, #fb923c, #9a3412);
}

.name {
  font-size: 18px;
  font-weight: 700;
  color: #0b1220;
}
.tag,
.tag-strong {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 500;
  color: #0f172a;
}
.tag-strong {
  background: linear-gradient(
    135deg,
    rgba(194, 77, 83, 0.16),
    rgba(229, 9, 20, 0.2)
  );
  border: 1px solid rgb(229, 9, 20);
  font-weight: 600;
  color: #111827;
}

.product-block {
  display: block;
  text-decoration: none;
  outline: none;
  position: relative;
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12),
    0 0 0 0.5px rgba(255, 255, 255, 0.95) inset;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16),
    0 0 0 0.5px rgba(255, 255, 255, 0.95) inset;
}
.product-block.featured {
  margin-top: 18px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}
.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.product-head-text {
  flex: 1;
  min-width: 0;
}
.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}
.product-sub {
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.6;
  color: #4b5563;
}
.product-price {
  font-size: 19px;
  font-weight: 750;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(229, 9, 20), rgb(226, 23, 33));
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  display: inline-block;
  box-shadow: 0 9px 20px rgba(229, 9, 20, 0.55);
  white-space: nowrap;
  /* margin-left: 8px; */
  width: 100%;
  margin-top: 15px;
  text-align: center;
}
.product-tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-recommend {
  position: absolute;
  top: 2px;
  right: 10px;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  box-shadow: 0 4px 10px rgba(248, 115, 22, 0.45);
  white-space: nowrap;
  font-weight: 600;
}

.bottom-bar-wrap {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 100;
  animation: barIn 0.35s ease-out 0.1s both;
}
@keyframes barIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bottom-bar {
  width: 100%;
  max-width: 430px;
  padding: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.93);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.65),
    0 0 0 0.5px rgba(255, 255, 255, 0.5) inset;
  display: flex;
  pointer-events: auto;
  overflow: hidden;
}
.bottom-btn {
  border: none;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transition: transform 0.08s, box-shadow 0.12s, opacity 0.12s;
  color: #e5e7eb;
  text-decoration: none;
  outline: none;
}
.bottom-btn-WhatsApp {
  width: 75%;
  border-bottom-left-radius: 999px;
  border-top-left-radius: 999px;
  background-color: #22c55e;
}
.bottom-btn-WhatsApp img {
  margin-right: 10px;
}
.bottom-btn-Telegram {
  width: 25%;
}
.bottom-btn-Telegram img {
  margin-left: 1em;
}
.bottom-btn img {
  width: 1.6em;
  height: 1.6em;
}
.bottom-btn:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .card {
    border-radius: 24px;
    padding: 18px 16px 82px;
  }
}
