/* =========================================================
   KOLPOP — Lantern Teal palette (derived from logo #238ca0)
   ========================================================= */

:root {
  /* logo-derived */
  --teal: #238ca0;
  --teal-deep: #1a6e7e;
  --teal-light: #6cbccc;
  --teal-soft: #e3eff2;
  --warm-gray: #797776;

  /* surface system */
  --primary: #0b1c21;            /* near-black with teal undertone */
  --primary-soft: #14323a;       /* dusk teal */
  --accent: #238ca0;             /* CTA */
  --accent-hover: #1a6e7e;
  --light: #f4f7f8;
  --moon: #eef3f4;

  /* text */
  --text: #1f2326;
  --text-soft: #4a5256;
  --text-light: #797776;
  --text-faint: #a6acaf;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
}

/* =========================================================
   Navigation
   ========================================================= */
.kolpop-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35,140,160,0.08);
}
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--primary); }

a, a:focus, a:active { outline: none; }

.cart-icon {
  position: relative;
  padding: 8px;
  color: var(--text-soft);
  transition: color 0.2s;
}
.cart-icon:hover { color: var(--accent); }
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img { height: 28px; width: auto; display: block; }
.logo-img-light { filter: brightness(0) invert(1); opacity: 0.92; }
@media (max-width: 640px) { .logo-img { height: 24px; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 80px;
}
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto 36px;
}
@media (max-width: 768px) {
  .hero { min-height: 72vh; }
  .hero-sub { font-size: 0.98rem; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 30px -10px rgba(35,140,160,0.55);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 11px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline-light {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* =========================================================
   Brand divider
   ========================================================= */
.brand-divider {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-top: 14px;
  border-radius: 2px;
}

/* =========================================================
   Sections
   ========================================================= */
.section-light  { padding: 90px 0; background: var(--light); }
.section-white  { padding: 90px 0; background: #fff; }
.section-dark   { padding: 100px 0; background: var(--primary); position: relative; }
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(35,140,160,0.18), transparent 45%),
    radial-gradient(circle at 82% 100%, rgba(35,140,160,0.12), transparent 50%);
  pointer-events: none;
}
.section-dark > * { position: relative; z-index: 1; }

.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-eyebrow-light { color: var(--teal-light); }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
}
.section-title-light { color: #fff; }

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  background: #fff;
  padding: 36px 0;
  border-top: 1px solid var(--moon);
  border-bottom: 1px solid var(--moon);
}
.trust-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.trust-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* =========================================================
   Product card
   ========================================================= */
.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid #ecefee;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
  z-index: 2;
}
.product-card:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px -18px rgba(11,28,33,0.18);
}
.product-card:hover::before { width: 3px; }

.product-card-img {
  overflow: hidden;
  height: 240px;
  background: var(--moon);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-body { padding: 18px 18px 22px; }
.product-card-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.product-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-card-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}

/* =========================================================
   Category card
   ========================================================= */
.category-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 320px;
  display: block;
  text-decoration: none;
}
.cat-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.category-card:hover .cat-img { transform: scale(1.08); }
.cat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(11,28,33,0) 35%, rgba(11,28,33,0.85) 100%);
}
.cat-overlay::before {
  content: '';
  position: absolute;
  left: 24px; bottom: 76px;
  width: 24px; height: 2px;
  background: var(--accent);
}
.cat-title {
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.cat-desc { color: rgba(255,255,255,0.78); font-size: 0.85rem; }

/* =========================================================
   Feature blocks (Why Kolpop)
   ========================================================= */
.feature-block { text-align: center; }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(35,140,160,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  background: rgba(35,140,160,0.08);
  transition: transform 0.3s, background 0.3s;
}
.feature-block:hover .feature-icon {
  transform: translateY(-4px);
  background: rgba(35,140,160,0.18);
}
.feature-title {
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-text {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

/* =========================================================
   Page hero (sub-pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-soft) 100%);
  padding: 130px 0 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(35,140,160,0.22), transparent 55%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin: 0 auto;
}

/* =========================================================
   Detail image
   ========================================================= */
.detail-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--moon);
}
.detail-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* =========================================================
   Category filter pills
   ========================================================= */
.category-btn {
  padding: 9px 20px;
  border-radius: 4px;
  border: 1px solid #d8dee0;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  display: inline-block;
}
.category-btn:hover { border-color: var(--accent); color: var(--accent); }
.category-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   Form
   ========================================================= */
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d8dee0;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35,140,160,0.15);
}

/* =========================================================
   Footer
   ========================================================= */
.kolpop-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
  border-top: 3px solid var(--accent);
}
.kolpop-footer h4 {
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-blurb {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}
.footer-section a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-section a:hover { color: var(--teal-light); }
.footer-section p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--teal-light); }
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Admin / table reuse
   ========================================================= */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--primary); color: #fff; padding: 12px; text-align: left; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #eee; }
.admin-table tr:hover { background: #f9fafa; }

.accent-link { color: var(--accent); }
.accent-link:hover { color: var(--accent-hover); }

/* =========================================================
   Responsive
   ========================================================= */
.mobile-menu { display: none; color: var(--primary); }
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 768px) {
  .detail-image img { height: 320px; }
  .section-light, .section-white { padding: 64px 0; }
  .section-dark { padding: 72px 0; }
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.7s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.22s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.34s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.46s; opacity: 0; }
