/* ==========================================================================
   Offers: category discount badges, campaign nav pill, campaign banner,
   and the campaign deal card on product cards. Loaded after product-card.css.
   ========================================================================== */

/* ---- product card: discount badge + countdown share the image's bottom edge ---- */
.pcard-thumb {
  container-type: inline-size;
  container-name: pthumb;
}
.pcard-deal {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.24rem 0.34rem 0.24rem 0.24rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 10px 22px -12px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.pcard-deal-off {
  flex-shrink: 0;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  box-shadow: 0 4px 10px -4px rgba(225, 29, 72, 0.55);
}

.cd-otp {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cd-otp-ico {
  display: grid;
  place-items: center;
  color: #ee5a6c;
}
.cd-otp-group,
.cd-otp-days {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.cd-otp-cell {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 22px;
  padding: 0 2px;
  border-radius: 5px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 -2px 0 #f1f5f9;
  animation: cd-otp-in 0.45s ease;
}
.cd-otp-group--secs .cd-otp-cell {
  color: #e0475b;
  background: #fff4f5;
  border-color: #fbc4cc;
  box-shadow:
    inset 0 -2px 0 #ffe1e5,
    0 0 0 2px rgba(238, 90, 108, 0.12);
}
.cd-otp-unit {
  margin-left: 1px;
  font-size: 0.74rem;
  font-weight: 850;
  color: #ee5a6c;
}
.cd-otp-sep {
  margin: 0 1px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #94a3b8;
}
.cd-otp--idle .cd-otp-cell {
  color: #cbd5e1;
  animation: none;
}
@keyframes cd-otp-in {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@container pthumb (max-width: 270px) {
  .pcard-deal { gap: 0.3rem; padding-right: 0.28rem; }
  .cd-otp-ico { display: none; }
  .cd-otp { gap: 0.1rem; }
  .cd-otp-group,
  .cd-otp-days { gap: 1px; }
  .cd-otp-cell { min-width: 14px; height: 21px; padding: 0 1px; font-size: 0.82rem; }
  .cd-otp-sep { margin: 0; font-size: 0.82rem; }
  .cd-otp-unit { font-size: 0.72rem; }
}
@container pthumb (max-width: 235px) {
  .pcard-deal-off { font-size: 0.62rem; padding: 0.28rem 0.4rem; }
  .cd-otp-cell { min-width: 13px; height: 20px; font-size: 0.76rem; }
  .cd-otp-sep { font-size: 0.76rem; }
  .cd-otp-unit { font-size: 0.68rem; }
}
@container pthumb (max-width: 205px) {
  .pcard-deal {
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.4rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    padding: 0.28rem;
    border-radius: 10px;
  }
  .pcard-deal-off { align-self: flex-start; font-size: 0.62rem; padding: 0.26rem 0.4rem; }
  .cd-otp { justify-content: space-between; gap: 0.1rem; }
  .cd-otp-group,
  .cd-otp-days { gap: 1px; }
  .cd-otp-cell { min-width: 12px; height: 20px; padding: 0 1px; font-size: 0.74rem; }
  .cd-otp-sep { margin: 0; font-size: 0.74rem; }
  .cd-otp-unit { font-size: 0.66rem; }
}
@container pthumb (max-width: 135px) {
  .cd-otp-group,
  .cd-otp-days { gap: 0; }
  .cd-otp-cell { min-width: 10px; height: 18px; padding: 0; font-size: 0.64rem; }
  .cd-otp-sep { font-size: 0.64rem; }
  .cd-otp-unit { font-size: 0.6rem; }
}

/* ---- category discount badge (navbar + feed sidebar + mega panel) ---- */
.cat-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding: 0.16rem 0.42rem 0.16rem 0.34rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cat-offer-badge-ico {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
}
.cat-offer-badge--nav {
  margin-left: 0.3rem;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7c2, #ffd166 55%, #ffb347);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 3px 10px -3px rgba(255, 179, 71, 0.8);
  position: relative;
  overflow: hidden;
}
.cat-offer-badge--nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: offer-shine 3.2s ease-in-out infinite;
}
.cat-offer-badge--tree {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  box-shadow: 0 4px 10px -4px rgba(225, 29, 72, 0.6);
}
@keyframes offer-shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.cat-tree-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.cat-tree-title .cat-tree-name {
  min-width: 0;
}
.catbar-panel-label .cat-offer-badge {
  margin-left: auto;
  text-transform: uppercase;
}

/* ---- navbar: running campaign pill ---- */
.catbar-nav > a.catbar-campaign {
  gap: 0.45rem;
  padding: 0.2rem 0.6rem 0.2rem 0.2rem;
  margin: 0 0.25rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 650;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 16px -10px rgba(8, 28, 72, 0.7);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.catbar-nav > a.catbar-campaign:hover,
.catbar-nav > a.catbar-campaign.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 20px -10px rgba(8, 28, 72, 0.75);
}
.catbar-campaign-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ffc46b, #ff7a45 55%, #f0436b);
  box-shadow: 0 2px 8px -2px rgba(255, 106, 61, 0.85);
}
.catbar-campaign-ico::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 170, 110, 0.7);
  animation: camp-ring 2.2s ease-out infinite;
}
.catbar-campaign-name {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
}
.catbar-campaign-time {
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffe2a0;
}
.catbar-nav > a.catbar-campaign--menu {
  padding-right: 0.3rem;
  margin: 0 0.15rem;
}
.catbar-campaign--menu .catbar-campaign-time { padding-left: 0.4rem; }
.catbar-campaign-caret {
  display: grid;
  place-items: center;
  width: 10px;
  margin-left: -0.25rem;
  color: #ffe2a0;
  transition: transform 0.25s ease;
}
.catbar-campaign.is-open .catbar-campaign-caret {
  transform: rotate(180deg);
}

/* hover menu listing every running campaign (rendered outside the clipped nav) */
.catbar-camps {
  position: absolute;
  top: calc(100% + 0.45rem);
  z-index: 55;
  width: min(340px, calc(100vw - 1.5rem));
  padding: 0.5rem;
  border-radius: 16px;
  color: var(--ink, #1a2332);
  background: #fff;
  border: 1px solid rgba(12, 99, 212, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 35, 70, 0.04),
    0 18px 40px rgba(12, 60, 130, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.24s;
}
.catbar-camps.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.catbar-camps::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(12, 99, 212, 0.08);
  border-top: 1px solid rgba(12, 99, 212, 0.08);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.catbar-camps-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.3rem 0.5rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a90;
}
.catbar-camps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.catbar-camps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.catbar-camps-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease;
}
.catbar-camps-item:hover,
.catbar-camps-item:focus-visible {
  outline: none;
  background: #f2f7ff;
}
.catbar-camps-item.is-lead {
  background: linear-gradient(135deg, #f5f9ff, #eef5ff);
  box-shadow: inset 0 0 0 1px rgba(12, 99, 212, 0.1);
}
.catbar-camps-item.is-lead:hover,
.catbar-camps-item.is-lead:focus-visible {
  background: linear-gradient(135deg, #eef5ff, #e4efff);
}
.catbar-camps-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ffc46b, #ff7a45 55%, #f0436b);
  box-shadow: 0 4px 10px -4px rgba(255, 106, 61, 0.8);
}
.catbar-camps-body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.catbar-camps-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 750;
  color: #0f2a52;
}
.catbar-camps-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.catbar-camps-end {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}
.catbar-camps-soon {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  background: #fff5db;
}
.catbar-camps-time {
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #e0475b;
  background: #fff4f5;
  box-shadow: inset 0 0 0 1px #fbd0d6;
}

@keyframes camp-ring {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---- campaign banner (home after the category strip, shop campaign listing) ---- */
.camp-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin: 1.1rem 0 0.4rem;
  padding: 1.4rem 1.5rem;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(55% 120% at 0% 0%, rgba(255, 226, 138, 0.3), transparent 60%),
    radial-gradient(45% 90% at 100% 0%, rgba(189, 212, 252, 0.45), transparent 62%),
    radial-gradient(60% 110% at 85% 120%, rgba(255, 138, 122, 0.22), transparent 60%),
    linear-gradient(125deg, #0b3a8c 0%, #0c63d4 42%, #1877f2 74%, #3f93f7 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 48px -28px rgba(12, 99, 212, 0.75);
}
.camp-banner--shop {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0.2rem 0 1.1rem;
  padding: 1.05rem 1.4rem;
}
/* Home: deep blue behind the copy, easing into a pale sky under the white deal cards */
.camp-banner--home {
  background:
    radial-gradient(45% 120% at 0% 0%, rgba(255, 226, 138, 0.28), transparent 60%),
    linear-gradient(
      100deg,
      #0b3a8c 0%,
      #0c5fd0 15%,
      #1877f2 24%,
      #5c9cf6 30%,
      #b3d1fd 37%,
      #e2eeff 45%,
      #f6f9ff 54%,
      #fff 64%
    );
  box-shadow:
    inset 0 0 0 1px rgba(15, 35, 70, 0.06),
    0 1px 2px rgba(15, 35, 70, 0.04),
    0 12px 32px -20px rgba(15, 35, 70, 0.18);
}
.camp-banner--home .camp-confetti {
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 26%, transparent 46%);
}
.camp-banner--home .camp-product {
  box-shadow:
    0 0 0 1px rgba(15, 35, 70, 0.07),
    0 8px 20px -16px rgba(15, 35, 70, 0.28);
}
.camp-banner--home .camp-product:hover,
.camp-banner--home .camp-item:hover .camp-product,
.camp-banner--home .camp-item:focus-within .camp-product {
  box-shadow:
    0 0 0 1px rgba(15, 35, 70, 0.09),
    0 14px 26px -16px rgba(15, 35, 70, 0.32);
}
.camp-banner--home .camp-viewall {
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 58, 0.55),
    0 12px 26px -18px rgba(214, 160, 30, 0.7);
}
.camp-banner-glow {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  left: 18%;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
  animation: camp-glow 8s ease-in-out infinite;
  pointer-events: none;
}
.camp-confetti {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Crect x='14' y='18' width='10' height='4' rx='2' fill='%23FFE28A' transform='rotate(-25 19 20)'/%3E%3Crect x='70' y='40' width='8' height='3' rx='1.5' fill='%23FF8A7A' transform='rotate(35 74 41)'/%3E%3Ccircle cx='120' cy='22' r='2.5' fill='%23ffffff'/%3E%3Crect x='160' y='60' width='10' height='4' rx='2' fill='%238EE6C9' transform='rotate(60 165 62)'/%3E%3Ccircle cx='40' cy='90' r='2' fill='%23BDD4FC'/%3E%3Crect x='95' y='110' width='9' height='3.5' rx='1.75' fill='%23FFE28A' transform='rotate(15 99 112)'/%3E%3Ccircle cx='190' cy='130' r='2.5' fill='%23FF8A7A'/%3E%3Crect x='20' y='138' width='8' height='3' rx='1.5' fill='%23ffffff' transform='rotate(-50 24 139)'/%3E%3Cpath d='M140 95l2 4 4 2-4 2-2 4-2-4-4-2 4-2z' fill='%23FFE28A'/%3E%3Ccircle cx='200' cy='20' r='1.8' fill='%23FFE28A'/%3E%3Crect x='130' y='145' width='7' height='3' rx='1.5' fill='%23BDD4FC' transform='rotate(40 133 146)'/%3E%3C/svg%3E");
  background-size: 220px 160px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.7) 32%, rgba(0, 0, 0, 0.15) 60%, transparent 85%);
  pointer-events: none;
}
.camp-spark {
  position: absolute;
  z-index: -1;
  color: #ffe28a;
  filter: drop-shadow(0 0 6px rgba(255, 226, 138, 0.7));
  animation: camp-twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}
.camp-spark--1 { width: 18px; height: 18px; top: 16px; left: 290px; }
.camp-spark--2 { width: 11px; height: 11px; bottom: 18px; left: 22px; color: #fff; animation-delay: 1.1s; }
.camp-spark--3 { width: 10px; height: 10px; top: 52%; left: 318px; color: #ff8a7a; animation-delay: 2s; }
.camp-banner--shop .camp-spark--1 { left: auto; right: 34%; }
.camp-banner--shop .camp-spark--3 { left: auto; right: 30%; }
@keyframes camp-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 30px) scale(1.12); }
}
@keyframes camp-twinkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.1) rotate(20deg); opacity: 1; }
}

.camp-main {
  min-width: 0;
}
.camp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.camp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: camp-live 1.6s ease-out infinite;
}
@keyframes camp-live {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}
.camp-title {
  margin: 0;
  font-family: var(--display, inherit);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(4, 30, 80, 0.35);
}
.camp-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.camp-sub strong {
  color: var(--action, #ffe28a);
  font-weight: 800;
}

.camp-timer {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.camp-banner--shop .camp-timer {
  justify-items: center;
  margin-top: 0;
}
.camp-timer-label {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky, #bdd4fc);
}
.cd-boxes {
  display: flex;
  align-items: flex-start;
}
.cd-box-wrap {
  display: flex;
  align-items: flex-start;
}
.cd-box {
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  min-width: 52px;
  padding: 0.5rem 0.35rem 0.4rem;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 18px -12px rgba(4, 30, 80, 0.6);
  backdrop-filter: blur(8px);
}
.cd-box-wrap:last-child .cd-box {
  color: var(--action-text, #3a3420);
  background: linear-gradient(180deg, #fff1b8, var(--action, #ffe28a));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 10px 20px -10px rgba(245, 200, 74, 0.8);
}
.cd-box-num {
  font-size: 1.4rem;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  animation: cd-tick 0.5s ease;
}
.cd-box-label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.cd-box-sep {
  padding: 0.5rem 0.16rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}
@keyframes cd-tick {
  from { opacity: 0.2; filter: blur(1.5px); }
  to { opacity: 1; filter: blur(0); }
}
.camp-banner--shop .cd-box { min-width: 48px; padding: 0.42rem 0.3rem 0.36rem; }
.camp-banner--shop .cd-box-num { font-size: 1.22rem; }

.camp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.camp-actions:empty {
  display: none;
}
.camp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--action-text, #3a3420);
  background: linear-gradient(135deg, #fff1b8, var(--action, #ffe28a) 45%, var(--action-deep, #f5c84a));
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 58, 0.5),
    0 12px 22px -12px rgba(245, 200, 74, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.camp-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 58, 0.6),
    0 16px 26px -12px rgba(245, 200, 74, 1);
}
.camp-cta span { transition: transform 0.2s ease; }
.camp-cta:hover span { transform: translateX(3px); }
.camp-also {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.65rem 0.36rem 0.4rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: background 0.2s ease;
}
.camp-also:hover { background: rgba(255, 255, 255, 0.2); }
.camp-also-tag {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
}
.camp-also-time {
  font-variant-numeric: tabular-nums;
  color: var(--action, #ffe28a);
}

/* ---- deal slider ---- */
.camp-slider {
  position: relative;
  min-width: 0;
}
.camp-track {
  list-style: none;
  margin: 0;
  padding: 6px 4px 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 166px;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
}
.camp-track::-webkit-scrollbar { display: none; }
.camp-slider[data-next="true"] .camp-track {
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.camp-slider[data-prev="true"] .camp-track {
  mask-image: linear-gradient(90deg, transparent, #000 56px);
}
.camp-slider[data-prev="true"][data-next="true"] .camp-track {
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.camp-track > li { scroll-snap-align: start; }
.camp-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -21px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--teal-deep, #0c63d4);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(12, 99, 212, 0.1),
    0 0 0 5px rgba(255, 255, 255, 0.45),
    0 10px 22px -10px rgba(12, 60, 130, 0.5);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.camp-arrow--prev { left: -12px; }
.camp-arrow--next { right: -12px; }
.camp-arrow:hover:not([aria-disabled="true"]) {
  transform: scale(1.07);
  box-shadow:
    0 0 0 1px rgba(12, 99, 212, 0.16),
    0 0 0 6px rgba(255, 255, 255, 0.6),
    0 14px 26px -10px rgba(12, 60, 130, 0.55);
}
.camp-arrow:focus-visible {
  outline: 2px solid var(--action, #ffe28a);
  outline-offset: 3px;
}
.camp-arrow[aria-disabled="true"] {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.camp-product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.3rem;
  height: 100%;
  padding: 0.45rem 0.45rem 0.6rem;
  border-radius: 18px;
  color: var(--text, #2a3642);
  background: #fff;
  box-shadow: 0 14px 26px -18px rgba(4, 30, 80, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.camp-item {
  position: relative;
}
.camp-product:hover,
.camp-item:hover .camp-product,
.camp-item:focus-within .camp-product {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -18px rgba(4, 30, 80, 0.8);
}
.camp-item:hover .camp-product-media img,
.camp-item:focus-within .camp-product-media img { transform: scale(1.07); }

/* hover actions sit on the image's bottom edge (buttons can't live inside the <a>) */
.camp-item-actions {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  right: 0.45rem;
  aspect-ratio: 1 / 1;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  padding: 0.4rem;
  border-radius: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.25s ease;
}
.camp-item:hover .camp-item-actions,
.camp-item:focus-within .camp-item-actions {
  opacity: 1;
  transform: translateY(-3px);
}
.camp-act {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  height: 30px;
  padding: 0 0.4rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.camp-act:hover { transform: translateY(-1px); }
.camp-act:focus-visible {
  outline: 2px solid var(--teal, #1877f2);
  outline-offset: 2px;
}
.camp-act--cart {
  color: var(--teal-deep, #0c63d4);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(12, 99, 212, 0.18),
    0 8px 16px -10px rgba(4, 30, 80, 0.6);
  backdrop-filter: blur(6px);
}
.camp-act--cart:hover {
  color: #fff;
  background: var(--teal, #1877f2);
  box-shadow: 0 10px 18px -10px rgba(24, 119, 242, 0.9);
}
.camp-act--buy {
  color: var(--action-text, #3a3420);
  background: linear-gradient(180deg, #fff1b8, var(--action, #ffe28a) 55%, var(--action-deep, #f5c84a));
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 58, 0.6),
    0 8px 16px -10px rgba(245, 200, 74, 1);
}
.camp-act--buy:hover {
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 58, 0.8),
    0 10px 20px -8px rgba(245, 200, 74, 1);
}
@media (hover: none) {
  .camp-item-actions {
    opacity: 1;
    transform: none;
  }
}
.camp-product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface, #f5fafd), var(--sky-soft, #e7f0fe));
}
.camp-product-media img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
}
.camp-product:hover .camp-product-media img { transform: scale(1.07); }
.camp-product-badge {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 850;
  color: #fff;
  background: linear-gradient(135deg, #ff8a5b, #f43f5e);
  box-shadow: 0 4px 10px -4px rgba(244, 63, 94, 0.6);
}
.camp-product-name {
  padding: 0 0.15rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.camp-product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0 0.15rem;
}
.camp-product-prices strong {
  font-size: 0.9rem;
  font-weight: 850;
  color: var(--teal-deep, #0c63d4);
}
.camp-product-prices del {
  font-size: 0.7rem;
  font-weight: 600;
  color: #8a94a6;
}

.camp-viewall {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.25rem;
  height: 100%;
  min-height: 220px;
  padding: 1rem 0.8rem;
  border-radius: 18px;
  text-align: center;
  color: var(--action-text, #3a3420);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(160deg, #fff1b8 0%, var(--action, #ffe28a) 45%, var(--action-deep, #f5c84a) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 58, 0.55),
    0 14px 26px -16px rgba(245, 200, 74, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.camp-viewall:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 58, 0.7),
    0 20px 30px -16px rgba(245, 200, 74, 1);
}
.camp-viewall-spark {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 20px;
  height: 20px;
  color: #fff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  animation: camp-twinkle 3s ease-in-out infinite;
}
.camp-viewall-count {
  font-family: var(--display, inherit);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--teal-deep, #0c63d4);
}
.camp-viewall-title {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.8;
}
.camp-viewall-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.35rem 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--teal-deep, #0c63d4);
  background: #fff;
  box-shadow: 0 8px 16px -10px rgba(4, 30, 80, 0.5);
}
.camp-viewall-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal, #1877f2);
  transition: transform 0.2s ease;
}
.camp-viewall-arrow svg { width: 14px; height: 14px; }
.camp-viewall:hover .camp-viewall-arrow { transform: translateX(3px); }

/* ---- feed right rail: live campaign cards ---- */
.camp-side {
  flex: 0 0 auto;
  padding-bottom: 0.75rem;
}
.camp-side-ico {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #ffc46b, #ff7a45 55%, #f0436b);
  box-shadow: 0 2px 8px -2px rgba(255, 106, 61, 0.8);
}
.camp-side-count {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
}
.camp-side-list {
  list-style: none;
  margin: 0;
  padding: 0 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.camp-side-item {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem 0.7rem;
  border-radius: 12px;
  color: #0f2a52;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(15, 42, 82, 0.08),
    0 1px 2px rgba(15, 42, 82, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.camp-side-item:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(12, 99, 212, 0.22),
    0 8px 18px -12px rgba(12, 60, 130, 0.35);
}
.camp-side-item:focus-visible {
  outline: 2px solid var(--teal, #1877f2);
  outline-offset: 2px;
}
.camp-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.camp-side-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: #0f2a52;
}
.camp-side-go {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.camp-side-go svg { width: 12px; height: 12px; }
.camp-side-item:hover .camp-side-go {
  transform: translateX(2px);
  color: var(--teal-deep, #0c63d4);
  background: #eef4ff;
}
.camp-side-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.3rem;
  margin-top: -0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}
.camp-side-sub strong {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #d23b50;
  background: #fff0f2;
}
.camp-side-sub > span[aria-hidden="true"] { display: none; }
.camp-side-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  color: #b45309;
}
.camp-side-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.camp-side-open {
  font-size: 0.7rem;
  font-weight: 700;
  color: #b45309;
}
.camp-side .cd-boxes {
  align-items: stretch;
  border-radius: 9px;
  background: #f6f8fc;
  box-shadow: inset 0 0 0 1px #e8edf5;
}
.camp-side .cd-box-wrap { flex: 1 1 0; min-width: 0; }
.camp-side .cd-box-wrap + .cd-box-wrap { box-shadow: inset 1px 0 0 #e3e9f2; }
.camp-side .cd-box,
.camp-side .cd-box-wrap:last-child .cd-box {
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.12rem;
  padding: 0.38rem 0.2rem 0.34rem;
  border-radius: 0;
  color: #0f2a52;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.camp-side .cd-box-wrap:last-child .cd-box { color: #d23b50; }
.camp-side .cd-box-num { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.camp-side .cd-box-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.08em; color: #8a94a6; opacity: 1; }
.camp-side .cd-box-wrap:last-child .cd-box-label { color: #e98392; }
.camp-side .cd-box-sep { display: none; }

@media (max-width: 1000px) {
  .camp-banner--home {
    grid-template-columns: 1fr;
    background:
      radial-gradient(55% 60% at 0% 0%, rgba(255, 226, 138, 0.3), transparent 60%),
      radial-gradient(60% 50% at 100% 0%, rgba(189, 212, 252, 0.4), transparent 62%),
      linear-gradient(180deg, #0b3a8c 0%, #0c63d4 34%, #1877f2 48%, #7fb1f8 60%, #dce9ff 70%, #fff 84%);
  }
  .camp-spark--1 { left: auto; right: 24px; }
  .camp-spark--3 { left: auto; right: 60px; top: 90px; }
  .camp-arrow--prev { left: -6px; }
  .camp-arrow--next { right: -6px; }
}
@media (max-width: 640px) {
  .camp-banner,
  .camp-banner--shop {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.1rem 1rem;
    border-radius: 20px;
  }
  .camp-banner--shop .camp-timer { justify-items: start; }
  .cd-box { min-width: 46px; }
  .cd-box-num { font-size: 1.2rem; }
  .camp-track { grid-auto-columns: 44%; }
  .camp-arrow { width: 32px; height: 32px; margin-top: -18px; }
  .camp-arrow--prev { left: -4px; }
  .camp-arrow--next { right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  .cd-otp-cell,
  .cat-offer-badge--nav::after,
  .catbar-campaign-ico::after,
  .camp-banner-glow,
  .camp-spark,
  .camp-viewall-spark,
  .camp-live-dot,
  .cd-box-num {
    animation: none !important;
  }
}
