.hk-catalog { --hk-gap:16px; --hk-per-lg:3; }
.hk-tabs { display:flex; gap:var(--hk-gap); }
.hk-pos-top .hk-tabs { flex-direction:column; }
.hk-pos-bottom .hk-tabs { flex-direction:column-reverse; }
.hk-pos-left .hk-tabs { flex-direction:row; }
.hk-pos-right .hk-tabs { flex-direction:row-reverse; }

/* === SEARCH BAR === */
.hk-search-container {
  margin-bottom: 24px;
}

.hk-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hk-search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  border: 2px solid #e1e4e8;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.25s ease;
  background: #fff;
  outline: none;
}

.hk-search-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.hk-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.hk-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: #999;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.hk-search-clear:hover {
  background: #f5f5f5;
  color: #111;
}

.hk-search-results {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.hk-results-count {
  padding: 6px 12px;
  background: #f0f0f2;
  border-radius: 20px;
  font-weight: 500;
}

/* Card hidden state for search */
.hk-card.hk-hidden {
  display: none !important;
}

/* === BRAND INFO SECTION === */
.hk-brand-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hk-brand-info__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .hk-brand-info__inner {
    grid-template-columns: auto 1fr;
    gap: 40px;
  }
}

.hk-brand-info__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hk-brand-info__logo {
    margin: 0;
    min-width: 180px;
  }
}

.hk-brand-info__logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hk-brand-info__content {
  text-align: center;
}

@media (min-width: 768px) {
  .hk-brand-info__content {
    text-align: left;
  }
}

.hk-brand-info__description {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.hk-brand-info__description h1,
.hk-brand-info__description h2,
.hk-brand-info__description h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
  color: #111;
}

.hk-brand-info__description p {
  margin: 0 0 12px 0;
}

.hk-brand-info__description p:last-child {
  margin-bottom: 0;
}

.hk-brand-info__description ul,
.hk-brand-info__description ol {
  margin: 12px 0;
  padding-left: 24px;
}

.hk-brand-info__description li {
  margin-bottom: 8px;
}

.hk-brand-info__description a {
  color: #111;
  text-decoration: underline;
}

.hk-brand-info__link {
  margin-top: 16px;
}

.hk-btn--primary {
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hk-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hk-tabs__nav { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.hk-tab { border:0; background:#f2f2f4; padding:.6rem 1rem; border-radius:999px; cursor:pointer; transition:transform .2s ease, background .2s; }
.hk-tab.is-active { background:#111; color:#fff; transform:translateY(-1px); }
.hk-tabs__panels { width:100%; }
.hk-tabpanel { display:none; }
.hk-tabpanel.is-active { display:block; }

/* Grid layout with Elementor responsive control */
.hk-grid { 
  display: grid; 
  gap: var(--hk-gap, 20px); 
  grid-template-columns: repeat(var(--hk-columns, 1), minmax(0, 1fr));
}
/* Fallback for old implementation */
@media (min-width:1024px){ 
  .hk-grid:not([style*="--hk-columns"]) { 
    grid-template-columns: repeat(var(--hk-per-lg, 3), minmax(0,1fr)); 
  } 
}

.hk-card { 
  background:#fff; 
  border-radius:16px; 
  overflow:hidden; 
  display:flex; 
  flex-direction:column; 
  box-shadow:0 10px 25px rgba(0,0,0,.05); 
  transition: transform .25s ease, box-shadow .25s ease; 
  position: relative;
  aspect-ratio: 210 / 297; /* A4 format */
}
.hk-var-flat .hk-card{ border-radius:0; }
.hk-var-rounded .hk-card{ border-radius:16px; }
.hk-var-floating .hk-card{ transform: translateY(0); }
.hk-var-floating .hk-card:hover{ transform: translateY(-6px); box-shadow:0 20px 40px rgba(0,0,0,.12); }
.hk-var-elevated3d .hk-card{ box-shadow: 0 12px 20px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);} 
.hk-var-motion .hk-card:hover{ transform: translate3d(0,-4px,0) rotate3d(1,1,0,.8deg); }

.hk-thumb{ 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:#e9ebef; 
  background-size: cover; 
  background-position: center;
  z-index: 0;
  /* === CRITICAL: Preserve color accuracy === */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Placeholder for missing thumbnails */
.hk-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ebef 100%);
  color: #9ca3af;
}

/* === OVERLAY BUTTONS === */
.hk-overlay__btn {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.hk-overlay__btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 1);
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hk-overlay__btn:hover svg {
  color: #333;
  fill: #333;
}

.hk-overlay__btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.hk-overlay__btn:active {
  transform: translateY(0);
}

/* Login message */
.hk-login-msg {
  font-size: 13px;
  color: #666;
  font-style: italic;
  padding: 0.5rem;
}
.hk-card__head{ 
  padding:16px 18px 20px; 
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  pointer-events: none;
}
.hk-card__head h3{ 
  margin:0; 
  font-size:1.15rem; 
  line-height:1.4; 
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  font-weight: 600;
}
.hk-btn{ appearance:none; border:0; background:#111; color:#fff; padding:.55rem .9rem; border-radius:10px; cursor:pointer; }
.hk-btn--ghost{ background:transparent; color:#111; border:1px solid #111; text-decoration:none; border-radius:10px; padding:.5rem .85rem; }

/* Modal viewer */
.hk-modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(10,10,15,.75); z-index:9999; }
.hk-modal.is-open{ display:flex; }
.hk-modal__inner{ width:min(96vw,1200px); height:min(92vh,900px); background:#fff; border-radius:14px; overflow:hidden; display:flex; flex-direction:column; }
.hk-modal__bar{ display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid #eee; }
.hk-modal__body{ flex:1; overflow:auto; }
.hk-pdfcanvas{ display:block; width:100% !important; height:auto !important; }

/* ============================================
   TAB ANIMATIONS & STYLES (v0.5.0)
   ============================================ */

/* Tab animations */
.hk-catalog[data-tab-animation="fade"] .hk-panel {
  animation: hkFadeIn 0.4s ease-in-out;
}

.hk-catalog[data-tab-animation="slide"] .hk-panel {
  animation: hkSlideUp 0.4s ease-out;
}

.hk-catalog[data-tab-animation="zoom"] .hk-panel {
  animation: hkZoomIn 0.3s ease-out;
}

@keyframes hkFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hkSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hkZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Tab style variants */
.hk-catalog[data-tab-style="pills"] .hk-tab {
  border-radius: 50px;
  padding: 12px 24px;
}

.hk-catalog[data-tab-style="underline"] .hk-tab {
  background: transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.hk-catalog[data-tab-style="underline"] .hk-tab.is-active {
  border-bottom-color: currentColor;
}

.hk-catalog[data-tab-style="minimal"] .hk-tab {
  background: transparent;
  padding: 8px 16px;
  font-weight: 500;
}

.hk-catalog[data-tab-style="minimal"] .hk-tab.is-active {
  color: #111;
  font-weight: 700;
}

/* ============================================
   BUTTON VARIANTS (v0.5.0)
   ============================================ */

.hk-catalog[data-button-variant="primary"] .hk-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hk-catalog[data-button-variant="primary"] .hk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.hk-catalog[data-button-variant="ghost"] .hk-btn {
  background: transparent;
  border: 2px solid currentColor;
  color: #111;
}

.hk-catalog[data-button-variant="ghost"] .hk-btn:hover {
  background: #111;
  color: #fff;
}

.hk-catalog[data-button-variant="pill"] .hk-btn {
  border-radius: 50px;
  padding: 12px 28px;
}

.hk-catalog[data-button-variant="minimal"] .hk-btn {
  background: transparent;
  border: none;
  color: #667eea;
  text-decoration: underline;
  padding: 8px 12px;
}

.hk-catalog[data-button-variant="minimal"] .hk-btn:hover {
  color: #764ba2;
  text-decoration: none;
}

/* ============================================
   CARD HOVER EFFECTS (v0.5.0)
   ============================================ */

.hk-catalog[data-card-hover="lift"] .hk-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hk-catalog[data-card-hover="tilt"] .hk-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hk-catalog[data-card-hover="tilt"] .hk-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.hk-catalog[data-card-hover="glow"] .hk-card {
  position: relative;
}

.hk-catalog[data-card-hover="glow"] .hk-card::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(15px);
}

.hk-catalog[data-card-hover="glow"] .hk-card:hover::after {
  opacity: 0.7;
}

.hk-catalog[data-card-hover="zoom"] .hk-card:hover .hk-thumb {
  transform: scale(1.1);
}

.hk-catalog[data-card-hover="zoom"] .hk-thumb {
  transition: transform 0.4s ease;
  overflow: hidden;
}

/* Card entry animations */
.hk-card {
  animation: hkCardEnter 0.5s ease-out backwards;
}

.hk-card:nth-child(2) { animation-delay: 0.1s; }
.hk-card:nth-child(3) { animation-delay: 0.2s; }
.hk-card:nth-child(4) { animation-delay: 0.3s; }
.hk-card:nth-child(5) { animation-delay: 0.4s; }
.hk-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes hkCardEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Smooth transitions for all interactive elements */
.hk-tab,
.hk-btn,
.hk-overlay__btn,
.hk-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.hk-tab:focus-visible,
.hk-btn:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 3px;
}

/* ============================================================================
   Hi-Kataloog v0.8 - Advanced Features CSS
   ============================================================================ */

/* FAVORITE BUTTON - REMOVED (no longer used) */

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.2); }
}

/* BADGE SYSTEM */
.hk-badge {
  position: absolute;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hk-badge-top-left {
  top: 12px;
  left: 12px;
}

.hk-badge-top-right {
  top: 12px;
  right: 12px;
}

.hk-badge-bottom-left {
  bottom: 12px;
  left: 12px;
}

.hk-badge-bottom-right {
  bottom: 12px;
  right: 12px;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* VERSION BADGE */
.hk-version-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* SORTING DROPDOWN */
.hk-sort-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: #fff;
}

.hk-sort-container label {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.hk-sort-dropdown {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.hk-sort-dropdown:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hk-sort-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* CATEGORY FILTER */
.hk-filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  flex-wrap: wrap;
}

.hk-filter-container label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin: 0;
}

.hk-filter-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hk-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.hk-filter-option:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.hk-filter-option input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.hk-filter-option input[type="checkbox"]:checked + span {
  color: #667eea;
  font-weight: 600;
}

/* ACTION ICONS (favorite + share in hover footer) */
.hk-action-icon {
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.hk-action-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  background: rgba(255,255,255,1);
}

.hk-action-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: all 0.3s ease;
}

/* Favorite button active state */
.hk-fav-btn.is-favorite svg {
  fill: #e74c3c;
  stroke: #e74c3c;
  animation: heartbeat 0.6s ease;
}

/* Share wrapper for dropdown positioning */
.hk-share-wrapper {
  position: relative;
}

/* Share dropdown menu */
.hk-share-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 100;
}

.hk-share-trigger.is-open + .hk-share-dropdown {
  display: flex;
}

.hk-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.hk-share-btn:hover {
  background: rgba(0,0,0,0.05);
  transform: translateX(4px);
}

.hk-share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.hk-share-facebook { color: #1877f2; }
.hk-share-twitter { color: #1da1f2; }
.hk-share-linkedin { color: #0077b5; }
.hk-share-email { color: #ea4335; }
.hk-share-copy { color: #4caf50; }

.hk-share-facebook:hover { background: rgba(24, 119, 242, 0.1); }
.hk-share-twitter:hover { background: rgba(29, 161, 242, 0.1); }
.hk-share-linkedin:hover { background: rgba(0, 119, 181, 0.1); }
.hk-share-email:hover { background: rgba(234, 67, 53, 0.1); }
.hk-share-copy:hover { background: rgba(76, 175, 80, 0.1); }

/* FAVORITES TAB */
.hk-tab-favorites {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hk-tab-favorites svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hk-fav-count {
  font-size: 0.9em;
  opacity: 0.7;
}

.hk-empty-favorites {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #999;
}

.hk-empty-favorites svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  stroke: #ddd;
  stroke-width: 1.5;
}

.hk-empty-favorites p {
  margin: 8px 0;
  font-size: 18px;
  font-weight: 500;
}

.hk-empty-favorites small {
  font-size: 14px;
  color: #bbb;
}

.hk-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--hk-gap, 20px);
}

/* DOWNLOAD BUTTON IN OVERLAY */
.hk-btn-download {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
}

.hk-btn-download:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* MODERN TAB STYLES */
.hk-tab-style-modern .hk-tabs__nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hk-tab-style-modern .hk-tab {
  color: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hk-tab-style-modern .hk-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.hk-tab-style-modern .hk-tab.is-active {
  color: #667eea;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hk-tab-style-glass .hk-tabs__nav {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 8px;
}

.hk-tab-style-glass .hk-tab {
  color: #333;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.hk-tab-style-glass .hk-tab.is-active {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* CARD ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hk-card {
  animation: fadeInUp 0.5s ease both;
}

/* HIDDEN STATE */
.hk-hidden {
  display: none !important;
}

/* TOAST NOTIFICATIONS */
.hk-toast {
  padding: 16px 24px;
  background: #333;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 320px;
}

.hk-toast--show {
  opacity: 1;
  transform: translateX(0);
}

.hk-toast--success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.hk-toast--error {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.hk-toast--info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* HOVER OVERLAY */
.hk-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}

.hk-card:hover .hk-card__overlay {
  opacity: 1;
  visibility: visible;
}

.hk-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin: auto;
}

.hk-overlay__footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* Old overlay button styles removed - using new ones above */
.hk-old-overlay__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.hk-overlay__btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.05);
}

.hk-overlay__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hk-sort-container,
  .hk-filter-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hk-sort-dropdown {
    width: 100%;
  }
  
  .hk-share-buttons {
    flex-wrap: wrap;
  }
  
  .hk-overlay__actions {
    max-width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  
  /* Tabs optimization for mobile */
  .hk-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .hk-tab {
    white-space: nowrap;
    min-width: fit-content;
    font-size: 14px;
    padding: 10px 16px;
  }
  
  /* Card title smaller on mobile */
  .hk-card-title {
    font-size: 14px !important;
  }
  
  /* Overlay buttons full width on mobile */
  .hk-overlay__btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Search bar full width */
  .hk-search-bar {
    width: 100%;
  }
}

/* Extra small mobile optimization */
@media (max-width: 480px) {
  .hk-card {
    border-radius: 12px;
  }
  
  .hk-tab {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .hk-badge {
    font-size: 9px;
    padding: 4px 10px;
  }
  
  .hk-overlay__btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .hk-grid {
    gap: calc(var(--hk-gap, 20px) * 0.75);
  }
}

/* MODERN GRADIENT CARD VARIANT */
.hk-var-modern .hk-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.hk-var-modern .hk-card__head h3 {
  color: #fff;
}

.hk-var-modern .hk-card__foot {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

/* ============================================
   FAVORITES SYSTEM
   ============================================ */

/* Favorites Tab */
.hk-tab--favorites {
  color: #ff1493;
  font-weight: 600;
  position: relative;
}

.hk-tab--favorites:hover {
  color: #ff69b4;
  background: rgba(255, 20, 147, 0.05);
}

.hk-tab--favorites.is-active {
  color: #ff1493;
  background: rgba(255, 20, 147, 0.1);
  border-bottom: 3px solid #ff1493;
}

.hk-tab--favorites svg {
  fill: currentColor;
  vertical-align: -4px;
  margin-right: 6px;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(0.95); }
}

/* Favorites Count Badge */
.hk-favorites-count {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  background: #ff1493;
  color: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  text-align: center;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(255, 20, 147, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hk-favorites-count[data-count="0"] {
  display: none;
}

.hk-tab--favorites.is-active .hk-favorites-count {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Favorites Label */
.hk-favorites-label {
  display: inline;
}

@media (max-width: 768px) {
  .hk-favorites-label {
    display: none;
  }
}

/* Favorites Panel */
.hk-tabpanel--favorites {
  min-height: 400px;
}

/* Empty State */
.hk-favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #999;
}

.hk-favorites-empty svg {
  stroke: #ffc0cb;
  margin-bottom: 24px;
  opacity: 0.5;
}

.hk-favorites-empty h3 {
  font-size: 24px;
  color: #555;
  margin-bottom: 12px;
  font-weight: 600;
}

.hk-favorites-empty p {
  font-size: 16px;
  color: #999;
  max-width: 400px;
}

/* Favorite Button in Card Overlay */
.hk-fav-btn,
.hk-action-icon[data-hk-favorite] {
  position: relative;
  background: rgba(255, 20, 147, 0.1);
  color: #ff1493;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hk-fav-btn:hover,
.hk-action-icon[data-hk-favorite]:hover {
  background: rgba(255, 20, 147, 0.2);
  transform: scale(1.1);
}

.hk-fav-btn svg,
.hk-action-icon[data-hk-favorite] svg {
  transition: all 0.3s ease;
}

/* Active/Favorited State */
.hk-fav-btn.is-active,
.hk-action-icon[data-hk-favorite].is-active {
  background: #ff1493;
  color: #fff;
}

.hk-fav-btn.is-active svg,
.hk-action-icon[data-hk-favorite].is-active svg {
  fill: currentColor;
  stroke: none;
}

/* Heartbeat Animation on Add */
.hk-fav-btn.heartbeat,
.hk-action-icon[data-hk-favorite].heartbeat {
  animation: heartbeatPop 0.6s ease;
}

@keyframes heartbeatPop {
  0% { transform: scale(1); }
  20% { transform: scale(1.3); }
  40% { transform: scale(0.9); }
  60% { transform: scale(1.1); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Overlay Favorite Button Specific */
.hk-overlay__favorite {
  background: rgba(255, 20, 147, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 20, 147, 0.3);
  color: #ff1493;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.hk-overlay__favorite:hover {
  background: rgba(255, 20, 147, 0.3);
  border-color: #ff1493;
  transform: scale(1.15) rotate(5deg);
}

.hk-overlay__favorite.is-active {
  background: #ff1493;
  border-color: #ff1493;
  color: #fff;
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hk-overlay__favorite.is-active svg {
  fill: currentColor;
}

@keyframes popIn {
  0% { transform: scale(0.5) rotate(-15deg); }
  50% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hk-favorites-count {
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    padding: 0 5px;
  }
  
  .hk-overlay__favorite {
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
  }
  
  .hk-favorites-empty h3 {
    font-size: 20px;
  }
  
  .hk-favorites-empty p {
    font-size: 14px;
  }
}

/* ============================================
   ANIMATION LIBRARY
   Comprehensive animation effects for tabs, buttons, cards
   ============================================ */

/* === TAB ENTRANCE ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from { 
    opacity: 0;
    transform: translateY(-20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from { 
    opacity: 0;
    transform: translateX(-20px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from { 
    opacity: 0;
    transform: translateX(20px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from { 
    transform: translateY(100%);
  }
  to { 
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from { 
    transform: translateY(-100%);
  }
  to { 
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.3);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

/* === TAB ACTIVE ANIMATIONS === */
@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes heartbeat {
  0%, 100% { 
    transform: scale(1); 
  }
  10%, 30% { 
    transform: scale(1.1); 
  }
  20%, 40% { 
    transform: scale(0.95); 
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes swing {
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px currentColor;
  }
  50% {
    box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
  }
}

/* === BUTTON HOVER EFFECTS === */
.hk-overlay__btn,
.hk-action-icon,
.hk-share-btn,
.hk-tab {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scale Effect */
.hk-hover-scale:hover {
  transform: scale(1.1);
}

/* Lift Effect */
.hk-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Glow Effect */
.hk-hover-glow:hover {
  box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
}

/* Ripple Effect */
.hk-hover-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hk-hover-ripple:hover::before {
  width: 300px;
  height: 300px;
}

/* Rotate Effect */
.hk-hover-rotate:hover {
  transform: rotate(5deg);
}

/* Bounce Effect */
.hk-hover-bounce:hover {
  animation: bounce 0.5s ease;
}

/* Shake Effect */
.hk-hover-shake:hover {
  animation: shake 0.5s ease;
}

/* Pulse Effect */
.hk-hover-pulse:hover {
  animation: pulse 0.6s ease;
}

/* Slide Effect */
.hk-hover-slide:hover {
  transform: translateX(5px);
}

/* === CLICK ANIMATIONS === */
@keyframes rippleClick {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes pulseClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes bounceClick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.05); }
}

@keyframes flash {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.7; }
}

.hk-click-ripple {
  position: relative;
  overflow: hidden;
}

.hk-click-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.hk-click-ripple:active::after {
  animation: rippleClick 0.6s ease-out;
}

.hk-click-pulse:active {
  animation: pulseClick 0.3s ease;
}

.hk-click-bounce:active {
  animation: bounceClick 0.4s ease;
}

.hk-click-flash:active {
  animation: flash 0.4s ease;
}

/* === CARD ENTRANCE ANIMATIONS === */
.hk-card-fadeIn {
  animation: fadeIn 0.6s ease both;
}

.hk-card-fadeInUp {
  animation: fadeInUp 0.6s ease both;
}

.hk-card-slideInUp {
  animation: slideInUp 0.6s ease both;
}

.hk-card-zoomIn {
  animation: zoomIn 0.6s ease both;
}

.hk-card-bounceIn {
  animation: bounceIn 0.8s ease both;
}

/* Stagger delay for cards */
.hk-card:nth-child(1) { animation-delay: 0.05s; }
.hk-card:nth-child(2) { animation-delay: 0.1s; }
.hk-card:nth-child(3) { animation-delay: 0.15s; }
.hk-card:nth-child(4) { animation-delay: 0.2s; }
.hk-card:nth-child(5) { animation-delay: 0.25s; }
.hk-card:nth-child(6) { animation-delay: 0.3s; }
.hk-card:nth-child(7) { animation-delay: 0.35s; }
.hk-card:nth-child(8) { animation-delay: 0.4s; }

/* === TAB ANIMATIONS === */
.hk-tab-fadeIn {
  animation: fadeIn 0.5s ease both;
}

.hk-tab-fadeInUp {
  animation: fadeInUp 0.5s ease both;
}

.hk-tab-fadeInDown {
  animation: fadeInDown 0.5s ease both;
}

.hk-tab-fadeInLeft {
  animation: fadeInLeft 0.5s ease both;
}

.hk-tab-fadeInRight {
  animation: fadeInRight 0.5s ease both;
}

.hk-tab-slideInUp {
  animation: slideInUp 0.5s ease both;
}

.hk-tab-slideInDown {
  animation: slideInDown 0.5s ease both;
}

.hk-tab-zoomIn {
  animation: zoomIn 0.5s ease both;
}

.hk-tab-bounceIn {
  animation: bounceIn 0.7s ease both;
}

.hk-tab-rotateIn {
  animation: rotateIn 0.6s ease both;
}

/* Stagger tabs */
.hk-tab:nth-child(1) { animation-delay: 0.05s; }
.hk-tab:nth-child(2) { animation-delay: 0.1s; }
.hk-tab:nth-child(3) { animation-delay: 0.15s; }
.hk-tab:nth-child(4) { animation-delay: 0.2s; }
.hk-tab:nth-child(5) { animation-delay: 0.25s; }

/* === ACTIVE TAB ANIMATIONS === */
.hk-tab.is-active.hk-active-pulse {
  animation: pulse 1.5s ease infinite;
}

.hk-tab.is-active.hk-active-heartbeat {
  animation: heartbeat 1.5s ease infinite;
}

.hk-tab.is-active.hk-active-bounce {
  animation: bounce 2s ease infinite;
}

.hk-tab.is-active.hk-active-shake {
  animation: shake 0.8s ease infinite;
}

.hk-tab.is-active.hk-active-swing {
  animation: swing 1s ease infinite;
}

.hk-tab.is-active.hk-active-glow {
  animation: glow 2s ease infinite;
}

/* === GLASS MORPHISM EFFECTS === */
.hk-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hk-glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === GRADIENT EFFECTS === */
.hk-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.hk-gradient-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
}

.hk-gradient-danger {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  color: #fff;
}

.hk-gradient-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
}

.hk-gradient-sunset {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  color: #fff;
}

/* === SHADOW VARIATIONS === */
.hk-shadow-soft {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.hk-shadow-medium {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.hk-shadow-strong {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.hk-shadow-colored {
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}

/* === TRANSITION UTILITIES === */
.hk-transition-fast {
  transition: all 0.15s ease;
}

.hk-transition-normal {
  transition: all 0.3s ease;
}

.hk-transition-slow {
  transition: all 0.6s ease;
}

.hk-transition-bounce {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hk-transition-elastic {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
