.hero-tags {
  display: none;
}

.hero-loyalty {
  position: absolute;
  left: 66px;
  right: 24px;
  bottom: 28px;
  min-height: 62px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px 20px 20px 7px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px rgba(26, 20, 50, 0.12);
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 0.18s, background 0.18s;
}

.hero-loyalty:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.loyalty-coin {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 15px 15px 15px 5px;
  display: grid;
  place-items: center;
  color: #7a5100;
  background: var(--accent);
  box-shadow: 0 5px 0 rgba(83, 48, 0, 0.18);
  overflow: hidden;
}

.loyalty-coin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-loyalty > span:nth-child(2) {
  min-width: 0;
}

.hero-loyalty small,
.hero-loyalty strong {
  display: block;
}

.hero-loyalty small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.hero-loyalty strong {
  margin-top: 2px;
  overflow: hidden;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-loyalty > i {
  width: 29px;
  height: 29px;
  border-radius: 10px 10px 10px 4px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  font-style: normal;
  font-weight: 950;
}

.product-points {
  width: max-content;
  max-width: 100%;
  margin: -2px 0 11px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--line));
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: color-mix(in srgb, var(--ink) 78%, #7a5100);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.product-points svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: var(--accent);
  stroke: color-mix(in srgb, var(--ink) 70%, #7a5100);
  stroke-width: 0.7;
}

.search-suggestion-copy > span em {
  padding: 3px 6px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--ink) 78%, #7a5100);
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.loyalty-dialog {
  width: min(920px, calc(100% - 30px));
  max-height: min(88dvh, 860px);
  padding: 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 34px 34px 34px 13px;
  box-shadow: 0 34px 100px rgba(24, 28, 49, 0.3);
}

.loyalty-dialog-head {
  position: sticky;
  top: -28px;
  z-index: 4;
  margin: -28px -28px 22px;
  padding: 25px 28px 19px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.loyalty-dialog-head h2 {
  margin: 6px 0 0;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(31px, 4vw, 43px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.035em;
}

.loyalty-dialog-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.loyalty-dialog-head > button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 24px;
}

.loyalty-story {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 25px 25px 25px 9px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at 96% 8%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 19%, var(--surface)), var(--surface));
}

.loyalty-story-mark {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 27px 27px 27px 9px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #fff));
  box-shadow: 0 9px 0 color-mix(in srgb, #8a5700 17%, transparent);
  transform: rotate(-4deg);
}

.loyalty-story-mark::before,
.loyalty-story-mark::after,
.loyalty-story-mark span,
.loyalty-story-mark i {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-strong);
  content: "";
}

.loyalty-story-mark::before { width: 31px; height: 31px; left: 26px; top: 25px; }
.loyalty-story-mark::after { width: 10px; height: 10px; left: 36px; top: 35px; background: var(--accent); }
.loyalty-story-mark span { width: 9px; height: 9px; left: 10px; top: 11px; box-shadow: 50px 6px 0 var(--secondary), 7px 51px 0 var(--accent-2); }
.loyalty-story-mark i { width: 7px; height: 7px; right: 12px; bottom: 11px; background: var(--accent-3); }

.loyalty-story small,
.loyalty-story strong {
  display: block;
}

.loyalty-story small {
  color: var(--primary-strong);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.loyalty-story strong {
  margin-top: 4px;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(19px, 3vw, 27px);
  font-weight: 620;
  line-height: 1.12;
}

.loyalty-story strong b {
  color: var(--primary-strong);
  font-weight: 650;
}

.loyalty-story p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.loyalty-steps {
  margin: 18px 0 27px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.loyalty-steps li {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-2);
}

.loyalty-steps li > span {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 12px 12px 12px 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary-strong);
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 17px;
  font-weight: 650;
}

.loyalty-steps strong,
.loyalty-steps small {
  display: block;
}

.loyalty-steps strong { font-size: 13px; }
.loyalty-steps small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.3; }

.loyalty-reward-head {
  margin-bottom: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.loyalty-reward-head h3 {
  margin: 5px 0 0;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 620;
  line-height: 1.08;
}

.loyalty-reward-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  font-size: 11px;
  font-weight: 900;
}

.loyalty-rewards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reward-card {
  --reward-tone: var(--tone, var(--primary));
  min-width: 0;
  min-height: 229px;
  padding: 10px 10px 14px;
  border: 1px solid color-mix(in srgb, var(--reward-tone) 28%, var(--line));
  border-radius: 21px 21px 21px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--reward-tone) 9%, var(--surface)), var(--surface));
  box-shadow: 0 7px 0 color-mix(in srgb, var(--reward-tone) 10%, transparent);
}

.reward-media {
  position: relative;
  width: 100%;
  height: 112px;
  overflow: hidden;
  border-radius: 15px 15px 15px 6px;
  display: block;
  background: color-mix(in srgb, var(--reward-tone) 8%, #fff);
}

.reward-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.reward-card:hover .reward-media img {
  transform: scale(1.04);
}

.reward-media > small {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(29, 35, 51, 0.72);
  font-size: 7px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(5px);
}

.reward-icon {
  width: 43px;
  height: 43px;
  border-radius: 15px 15px 15px 5px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--reward-tone);
}

.reward-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reward-card small,
.reward-card strong,
.reward-card b {
  display: block;
}

.reward-card small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.reward-card strong {
  min-height: 38px;
  margin-top: 3px;
  overflow: hidden;
  font-family: "Fredoka Pelangi", sans-serif;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reward-card b {
  margin-top: 7px;
  color: var(--primary-strong);
  font-size: 12px;
}

.reward-skeleton {
  min-height: 229px;
  border-radius: 21px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--line) 70%, #fff) 25%, #fff 45%, color-mix(in srgb, var(--line) 70%, #fff) 65%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.loyalty-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.loyalty-fineprint {
  margin: 19px 0 0;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.reward-credits {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.reward-credits summary {
  width: max-content;
  margin-inline: auto;
  cursor: pointer;
  font-weight: 850;
}

.reward-credits p {
  max-width: 720px;
  margin: 8px auto 0;
  line-height: 1.5;
}

.reward-credits a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-loyalty {
  margin: 15px 0;
  padding: 13px;
  border: 2px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 19px 19px 19px 7px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface));
}

.detail-loyalty-icon {
  width: 43px;
  height: 43px;
  border-radius: 15px 15px 15px 5px;
  display: grid;
  place-items: center;
  color: #775000;
  background: var(--accent);
  box-shadow: 0 5px 0 color-mix(in srgb, #7b4c00 18%, transparent);
}

.detail-loyalty-icon svg { width: 23px; fill: currentColor; }
.detail-loyalty small,
.detail-loyalty strong { display: block; }
.detail-loyalty small { color: var(--muted); font-size: 8px; font-weight: 950; letter-spacing: 0.13em; }
.detail-loyalty strong { color: var(--primary-strong); font-family: "Fredoka Pelangi", sans-serif; font-size: 18px; font-weight: 630; }
.detail-loyalty p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.detail-loyalty a { padding: 8px 10px; border-radius: 11px 11px 11px 4px; color: #fff; background: var(--primary-strong); font-size: 10px; font-weight: 900; white-space: nowrap; }

@media (max-width: 1050px) {
  .hero-loyalty { left: 46px; }
  .loyalty-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero-loyalty {
    left: 20px;
    right: 20px;
    bottom: 19px;
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 8px;
  }
  .loyalty-coin { width: 38px; height: 38px; border-radius: 13px 13px 13px 5px; }
  .hero-loyalty strong { overflow: visible; font-size: 13px; line-height: 1.08; text-overflow: clip; white-space: normal; }
  .hero-loyalty > i { width: 27px; height: 27px; }
  .product-points { margin-bottom: 9px; padding: 4px 6px; font-size: 9px; }
  .search-suggestion-copy > span { flex-wrap: wrap; }
  .search-suggestion-copy > span em { order: 3; }
  .loyalty-dialog {
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    margin: auto 0 0;
    padding: 22px 16px calc(23px + env(safe-area-inset-bottom));
    border-radius: 29px 29px 0 0;
  }
  .loyalty-dialog .dialog-handle { display: block; width: 46px; height: 5px; margin: -10px auto 13px; border-radius: 99px; background: var(--line); }
  .loyalty-dialog-head { top: -22px; margin: -22px -16px 17px; padding: 18px 16px 15px; }
  .loyalty-dialog-head h2 { font-size: 29px; }
  .loyalty-dialog-head p { max-width: 280px; font-size: 11px; }
  .loyalty-story { padding: 14px; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .loyalty-story-mark { width: 58px; height: 58px; border-radius: 19px 19px 19px 7px; }
  .loyalty-story-mark::before { width: 23px; height: 23px; left: 18px; top: 17px; }
  .loyalty-story-mark::after { width: 8px; height: 8px; left: 25px; top: 25px; }
  .loyalty-story-mark span { left: 7px; top: 7px; transform: scale(.7); transform-origin: left top; }
  .loyalty-story-mark i { right: 7px; bottom: 7px; }
  .loyalty-story strong { font-size: 17px; }
  .loyalty-story p { font-size: 10px; }
  .loyalty-steps { grid-template-columns: 1fr; gap: 7px; margin: 13px 0 22px; }
  .loyalty-steps li { min-height: 60px; padding: 10px 12px; }
  .loyalty-reward-head { align-items: start; }
  .loyalty-reward-head h3 { font-size: 23px; }
  .loyalty-reward-head > span { font-size: 9px; }
  .loyalty-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reward-card { min-height: 218px; padding: 9px 9px 12px; }
  .reward-media { height: 103px; }
  .reward-card strong { font-size: 13px; }
  .detail-loyalty { grid-template-columns: 40px minmax(0, 1fr); }
  .detail-loyalty-icon { width: 40px; height: 40px; }
  .detail-loyalty a { grid-column: 1 / -1; min-height: 38px; display: grid; place-items: center; }
}

@media (max-width: 365px) {
  .hero-loyalty { left: 18px; right: 18px; }
  .hero-loyalty small { display: none; }
  .loyalty-rewards { grid-template-columns: 1fr; }
  .reward-card { min-height: 118px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .reward-media { width: 92px; height: 92px; flex: 0 0 92px; }
  .reward-card > div { min-width: 0; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  .hero-loyalty { position: static; max-width: 390px; margin-top: 12px; min-height: 53px; }
  .loyalty-dialog { width: min(900px, calc(100% - 24px)); max-height: 95dvh; margin: auto; border-radius: 25px; }
  .loyalty-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-loyalty { transition: none; }
}
