/* DEKESIN v2 — Tailwind + FA6 era
   Tailwind handles 95% of styling via utility classes in HTML.
   This file holds: design tokens, custom utilities, nav-link animation,
   product card uniformity, blog/article refinements, cookie banner overrides.
*/

/* ---------- Nav underline animation (demo style) ---------- */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(45deg, #00509E, #37B3AD);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---------- Product card uniformity (matches demo inline CSS) ---------- */
#products .grid > div h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  height: 3rem !important;
  line-height: 1.5rem !important;
}
#products .grid > div {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
#products .grid > div > .p-6 {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}
#products .grid > div > .p-6 > ul {
  flex: 1 1 auto !important;
}
#products .grid > div > .p-6 > a[href*='amazon.com'],
#products .grid > div > .p-6 > a.dk-cta {
  margin-top: auto !important;
}

/* ---------- Article body refinements (blog detail) ---------- */
.dk-article-body p { margin-bottom: 1.2em; line-height: 1.75; }
.dk-article-body h2 { margin-top: 2em; margin-bottom: 0.5em; }
.dk-article-body h3 { margin-top: 1.5em; margin-bottom: 0.4em; }
.dk-article-body img { border-radius: 8px; margin: 1.5em 0; }
.dk-article-body blockquote {
  border-left: 4px solid #37B3AD;
  background: #f7fafc;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #4a5568;
}
.dk-article-body ul, .dk-article-body ol { margin: 1em 0; padding-left: 1.5em; }
.dk-article-body li { margin-bottom: 0.4em; }
.dk-article-body strong { color: #00509E; }

/* ---------- Specs table (used in product detail) ---------- */
.dk-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.dk-specs th, .dk-specs td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.dk-specs th {
  background: #f7fafc;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  width: 36%;
}

/* ---------- Highlights (used in product detail, also in cards) ---------- */
.dk-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #4a5568;
  margin-bottom: 8px;
  line-height: 1.4;
}
.dk-highlights li .fa { color: #009A6C; margin-top: 3px; flex-shrink: 0; }

/* ---------- Pagination (custom DEKESIN pagebar) ---------- */
.dk-pagebar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}
.dk-pagebar .page-status {
  color: #6b7280;
  font-size: 0.85rem;
  margin-right: 8px;
}
.dk-pagebar .page-index,
.dk-pagebar .page-pre,
.dk-pagebar .page-next,
.dk-pagebar .page-last,
.dk-pagebar .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #00509E;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.dk-pagebar .page-num {
  min-width: 40px;
  padding: 0 10px;
}
.dk-pagebar .page-index:hover,
.dk-pagebar .page-pre:hover,
.dk-pagebar .page-next:hover,
.dk-pagebar .page-last:hover,
.dk-pagebar .page-num:hover {
  background: #00509E;
  border-color: #00509E;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 80, 158, 0.2);
}
.dk-pagebar .page-num-current {
  background: linear-gradient(45deg, #00509E, #37B3AD);
  border-color: #00509E;
  color: #fff;
  cursor: default;
  box-shadow: 0 4px 10px rgba(0, 80, 158, 0.25);
}
.dk-pagebar .page-num-current:hover {
  transform: none;
}
/* Disabled prev/next/first/last (PBootCMS emits href="javascript:;" when unavailable) */
.dk-pagebar a[href="javascript:;"],
.dk-pagebar a[href="javascript:void(0);"] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  background: #f3f4f6;
  color: #9ca3af;
}

/* ---------- Cookie banner print fix ---------- */
@media print { #dk-cookie, #backToTop { display: none !important; } }
