/* SM ALI Industry — global styles */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ===== Running headline ticker ===== */
#headline-ticker { position: relative; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
}
.ticker-group {
  display: flex;
  flex-shrink: 0;
  padding: 8px 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2.25rem;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  color: #eef2ff;
}
.ticker-item i { font-size: 11px; }
#headline-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* Nav underline */
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: #3730a3; transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Timeline connector */
.timeline-line::before {
  content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, #c7d2fe, transparent);
}

.line-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== CSS Cigarette Pack Render ===== */
.pack-scene {
  perspective: 900px;
  display: grid; place-items: center;
  transition: transform .5s ease;
}
.product-card:hover .pack-scene { transform: translateY(-6px); }
.pack {
  position: relative;
  width: 130px; height: 185px;
  transform: rotateX(6deg) rotateY(-18deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 30px rgba(15,23,42,.35));
  transition: transform .6s ease;
}
.product-card:hover .pack { transform: rotateX(4deg) rotateY(-10deg); }
.pack-body {
  position: absolute; inset: 0; top: 28px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(135deg, var(--pc), var(--pa));
  display: flex; flex-direction: column; align-items: center;
  padding-top: 30px; color: #fff; overflow: hidden;
}
.pack-lid {
  position: absolute; left: 0; right: 0; top: 0; height: 42px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(135deg, var(--pa), var(--pc));
  border-bottom: 2px solid rgba(255,255,255,.15);
  z-index: 3;
}
.pack-sticks {
  position: absolute; left: 14px; right: 14px; top: 8px; height: 34px;
  display: flex; gap: 3px; justify-content: center; z-index: 2;
}
.pack-sticks .stick {
  width: 9px; height: 30px; border-radius: 2px;
  background: linear-gradient(to bottom, #fff 0 62%, #f0a04b 62% 100%);
  box-shadow: inset -1px 0 0 rgba(0,0,0,.08);
}
.pack-crest { font-size: 22px; opacity: .95; margin-bottom: 4px; z-index: 4; }
.pack-brand {
  font-family: 'Poppins', sans-serif; font-weight: 800; letter-spacing: 1px;
  font-size: 18px; z-index: 4; text-align: center; line-height: 1;
}
.pack-sub {
  font-size: 9px; letter-spacing: 2px; opacity: .85; margin-top: 4px; z-index: 4;
}
.pack-lines {
  position: absolute; bottom: 0; left: 0; right: 0; height: 46px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.10) 0 2px, transparent 2px 8px);
}

/* Admin subtle */
.admin-tab { cursor: pointer; }

/* ---- Hero auto slider ---- */
#hero-slider { z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1; transform: scale(1);
}
#hero-dots button {
  width: 11px; height: 11px; border-radius: 9999px;
  background: rgba(255,255,255,.4);
  transition: all .3s ease; cursor: pointer; border: none;
}
#hero-dots button.is-active {
  background: #fff; width: 30px;
}
