/* ==========================================================================
   TemplateEdge — Main Stylesheet
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Custom Properties (defaults — overridden by Customizer inline CSS)
   -------------------------------------------------------------------------- */
:root {
  --te-primary:         #6d28d9;
  --te-primary-dark:    #5b21b6;
  --te-primary-light:   #ede9fe;
  --te-primary-fg:      #ffffff;
  --te-accent:          #7c3aed;
  --te-bg:              #f8f8fc;
  --te-surface:         #ffffff;
  --te-border:          #e5e4f0;
  --te-border-strong:   #cbc9e0;
  --te-text:            #1a1a2e;
  --te-text-secondary:  #3d3d5c;
  --te-muted:           #6b6b8a;
  --te-muted-light:     #9898b0;
  --te-success:         #059669;
  --te-warning:         #d97706;
  --te-danger:          #dc2626;
  --te-fs-base:         16px;

  /* Spacing scale */
  --te-space-1: 0.25rem;
  --te-space-2: 0.5rem;
  --te-space-3: 0.75rem;
  --te-space-4: 1rem;
  --te-space-5: 1.25rem;
  --te-space-6: 1.5rem;
  --te-space-8: 2rem;
  --te-space-10: 2.5rem;
  --te-space-12: 3rem;
  --te-space-16: 4rem;
  --te-space-20: 5rem;
  --te-space-24: 6rem;

  /* Border radius */
  --te-radius-sm:  0.375rem;
  --te-radius:     0.5rem;
  --te-radius-md:  0.75rem;
  --te-radius-lg:  1rem;
  --te-radius-xl:  1.5rem;
  --te-radius-full: 9999px;

  /* Shadows */
  --te-shadow-sm:  0 1px 2px 0 rgba(26,26,46,.05);
  --te-shadow:     0 4px 6px -1px rgba(26,26,46,.08), 0 2px 4px -1px rgba(26,26,46,.06);
  --te-shadow-md:  0 8px 16px -4px rgba(26,26,46,.10), 0 4px 8px -4px rgba(26,26,46,.06);
  --te-shadow-lg:  0 20px 40px -8px rgba(26,26,46,.14), 0 8px 16px -8px rgba(26,26,46,.08);
  --te-shadow-primary: 0 8px 24px -4px rgba(109,40,217,.35);

  /* Transitions */
  --te-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --te-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --te-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --te-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Container */
  --te-container-max: 1280px;
  --te-container-px:  clamp(1rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   1. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--te-fs-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--te-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--te-text);
  background-color: var(--te-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--te-transition);
}
a:hover { color: var(--te-primary); }

button { cursor: pointer; font-family: inherit; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--te-text);
}

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--te-primary); color: var(--te-primary-fg);
  padding: 0.5rem 1rem; border-radius: var(--te-radius);
  z-index: 9999; transition: top 0.1s;
}
.skip-link:focus { top: 1rem; }

/* Screen-reader only */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px;
  overflow: hidden; position: absolute; word-wrap: normal;
}

/* --------------------------------------------------------------------------
   2. Layout Utilities
   -------------------------------------------------------------------------- */
.te-container {
  width: 100%;
  max-width: var(--te-container-max);
  margin-inline: auto;
  padding-inline: var(--te-container-px);
}

.te-site { display: flex; flex-direction: column; min-height: 100vh; }
.te-main  { flex: 1; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.te-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--te-space-2);
  padding: 0.625rem 1.25rem;
  border-radius: var(--te-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: all var(--te-transition);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.te-btn:focus-visible {
  outline: 2px solid var(--te-primary);
  outline-offset: 3px;
}

.te-btn--primary {
  background: var(--te-primary);
  color: var(--te-primary-fg);
  border-color: var(--te-primary);
  box-shadow: var(--te-shadow-primary);
}
.te-btn--primary:hover {
  background: var(--te-primary-dark);
  border-color: var(--te-primary-dark);
  color: var(--te-primary-fg);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -4px rgba(109,40,217,.45);
}
.te-btn--primary:active { transform: translateY(0); }

.te-btn--secondary {
  background: var(--te-surface);
  color: var(--te-text);
  border-color: var(--te-border-strong);
  box-shadow: var(--te-shadow-sm);
}
.te-btn--secondary:hover {
  background: var(--te-bg);
  border-color: var(--te-primary);
  color: var(--te-primary);
}

.te-btn--ghost {
  background: transparent;
  color: var(--te-text-secondary);
  border-color: transparent;
}
.te-btn--ghost:hover {
  background: rgba(109,40,217,.07);
  color: var(--te-primary);
}

.te-btn--sm  { padding: 0.4375rem 0.875rem; font-size: 0.875rem; }
.te-btn--lg  { padding: 0.875rem 1.75rem; font-size: 1.0625rem; }
.te-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   4. Form Elements
   -------------------------------------------------------------------------- */
.te-input, .te-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--te-font);
  font-size: 0.9375rem;
  color: var(--te-text);
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius);
  transition: border-color var(--te-transition), box-shadow var(--te-transition);
  appearance: none;
}
.te-input::placeholder { color: var(--te-muted); }
.te-input:focus, .te-select:focus {
  outline: none;
  border-color: var(--te-primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,.15);
}
.te-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b6b8a'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Tags / Pills
   -------------------------------------------------------------------------- */
.te-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.8125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--te-text-secondary);
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-full);
  transition: all var(--te-transition);
  white-space: nowrap;
}
.te-tag:hover {
  border-color: var(--te-primary);
  color: var(--te-primary);
  background: var(--te-primary-light);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.te-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--te-border);
  transition: box-shadow var(--te-transition);
}
.te-header.is-scrolled { box-shadow: var(--te-shadow-md); }

.te-header__inner {
  display: flex;
  align-items: center;
  gap: var(--te-space-6);
  height: 4rem;
}

/* Logo */
.te-logo {
  display: flex;
  align-items: center;
  gap: var(--te-space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.te-logo__icon {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  background: var(--te-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: var(--te-radius-sm);
  letter-spacing: -0.03em;
}
.te-logo__text {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--te-text);
  letter-spacing: -0.02em;
}
.te-logo--footer .te-logo__text { color: #fff; }
.te-logo--footer .te-logo__icon { background: rgba(255,255,255,.15); }

/* Custom logo override */
.te-logo .custom-logo { height: 2rem; width: auto; }

/* Primary Nav */
.te-nav { margin-inline-start: auto; }
.te-nav .te-nav__list {
  display: flex;
  align-items: center;
  gap: var(--te-space-1);
}
.te-nav .te-nav__list a {
  display: block;
  padding: 0.4375rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--te-text-secondary);
  border-radius: var(--te-radius-sm);
  transition: all var(--te-transition);
}
.te-nav .te-nav__list a:hover,
.te-nav .te-nav__list .current-menu-item > a {
  color: var(--te-primary);
  background: var(--te-primary-light);
}

/* Header Actions */
.te-header__actions {
  display: flex;
  align-items: center;
  gap: var(--te-space-3);
  flex-shrink: 0;
}

/* Currency Dropdown */
.te-currency {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--te-space-1);
  padding: 0.4375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--te-text-secondary);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius);
  cursor: pointer;
  user-select: none;
  transition: all var(--te-transition);
}
.te-currency:hover { border-color: var(--te-primary); color: var(--te-primary); }
.te-currency__icon { width: 1rem; height: 1rem; transition: transform var(--te-transition); }
.te-currency[aria-expanded="true"] .te-currency__icon { transform: rotate(180deg); }
.te-currency__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 9rem;
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-md);
  box-shadow: var(--te-shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all var(--te-transition);
  z-index: 200;
}
.te-currency[aria-expanded="true"] .te-currency__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.te-currency__dropdown li {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--te-text-secondary);
  cursor: pointer;
  transition: all var(--te-transition);
}
.te-currency__dropdown li:hover { background: var(--te-primary-light); color: var(--te-primary); }

/* Mobile Toggle */
.te-mobile-toggle {
  display: none;
  padding: 0.375rem;
  background: none;
  border: none;
  color: var(--te-text-secondary);
  border-radius: var(--te-radius-sm);
  transition: all var(--te-transition);
}
.te-mobile-toggle:hover { color: var(--te-primary); background: var(--te-primary-light); }
.te-mobile-toggle svg { width: 1.25rem; height: 1.25rem; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.te-hero {
  padding-block: clamp(4rem, 10vw, 7rem);
  background: linear-gradient(160deg, #f8f8fc 0%, #ede9fe 50%, #f8f8fc 100%);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.te-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(124,58,237,.12) 0%, transparent 70%);
  pointer-events: none;
}

.te-hero__inner { position: relative; }

.te-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--te-space-2);
  padding: 0.375rem 0.875rem;
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--te-text-secondary);
  margin-bottom: var(--te-space-6);
  box-shadow: var(--te-shadow-sm);
  animation: te-fade-in-up 0.6s ease both;
}
.te-hero__badge-dot {
  width: 0.5rem; height: 0.5rem;
  background: var(--te-primary);
  border-radius: 50%;
  animation: te-pulse 2s ease infinite;
}

.te-hero__headline {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--te-text);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--te-space-6);
  animation: te-fade-in-up 0.6s 0.1s ease both;
}
.te-hero__headline span {
  color: var(--te-primary);
  position: relative;
}
.te-hero__headline span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: 0.08em;
  background: currentColor;
  border-radius: 9999px;
  opacity: 0.3;
}

.te-hero__sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--te-muted);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--te-space-10);
  animation: te-fade-in-up 0.6s 0.15s ease both;
}

/* Hero Search */
.te-hero__search-wrap {
  position: relative;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: var(--te-space-6);
  animation: te-fade-in-up 0.6s 0.2s ease both;
}
.te-hero__search-form { width: 100%; }
.te-hero__search-inner {
  display: flex;
  align-items: center;
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-xl);
  padding: 0.4375rem 0.4375rem 0.4375rem 1rem;
  box-shadow: var(--te-shadow-md);
  transition: border-color var(--te-transition), box-shadow var(--te-transition);
}
.te-hero__search-inner:focus-within {
  border-color: var(--te-primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,.15), var(--te-shadow-md);
}
.te-hero__search-icon {
  width: 1.125rem; height: 1.125rem;
  color: var(--te-muted);
  flex-shrink: 0;
  margin-right: var(--te-space-2);
}
.te-hero__search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--te-font);
  font-size: 0.9375rem;
  color: var(--te-text);
  outline: none;
  padding: 0.25rem 0;
}
.te-hero__search-input::placeholder { color: var(--te-muted); }
.te-hero__search-btn { flex-shrink: 0; border-radius: var(--te-radius-lg); }

/* Live Results */
.te-live-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0; right: 0;
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-md);
  box-shadow: var(--te-shadow-lg);
  overflow: hidden;
  z-index: 300;
  text-align: left;
}
.te-live-results:not([hidden]) { display: block; }
.te-live-result {
  display: flex;
  align-items: center;
  gap: var(--te-space-3);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--te-border);
  transition: background var(--te-transition);
  cursor: pointer;
}
.te-live-result:last-child { border-bottom: none; }
.te-live-result:hover { background: var(--te-bg); }
.te-live-result__thumb { width: 3rem; height: 2rem; object-fit: cover; border-radius: var(--te-radius-sm); background: var(--te-bg); flex-shrink: 0; }
.te-live-result__info { flex: 1; min-width: 0; }
.te-live-result__title { font-size: 0.875rem; font-weight: 600; color: var(--te-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-live-result__price { font-size: 0.75rem; color: var(--te-primary); font-weight: 600; }

/* Popular Tags */
.te-hero__popular {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--te-space-2);
  flex-wrap: wrap;
  animation: te-fade-in-up 0.6s 0.25s ease both;
}
.te-hero__popular-label { font-size: 0.875rem; font-weight: 600; color: var(--te-muted); }
.te-hero__popular-tags { display: flex; gap: var(--te-space-2); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   8. Category Cards
   -------------------------------------------------------------------------- */
.te-categories {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--te-surface);
  border-bottom: 1px solid var(--te-border);
}

.te-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--te-space-3);
}

.te-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--te-space-3);
  padding: var(--te-space-6) var(--te-space-4);
  background: var(--te-bg);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-lg);
  text-align: center;
  text-decoration: none;
  transition: all var(--te-transition);
  cursor: pointer;
}
.te-cat-card:hover {
  border-color: var(--te-primary);
  background: var(--te-surface);
  box-shadow: var(--te-shadow-md);
  transform: translateY(-2px);
  color: var(--te-primary);
}

.te-cat-card__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--te-radius-md);
  background: var(--te-primary-light);
  position: relative;
  overflow: hidden;
}
.te-cat-card__icon::before {
  content: '';
  position: absolute;
  inset: 25%;
  background: var(--te-primary);
  border-radius: inherit;
}

/* Icon specific shapes */
.te-cat-card__icon--layout::before   { clip-path: polygon(0 0,100% 0,100% 35%,0 35%,0 45%,60% 45%,60% 55%,0 55%,0 100%,100% 100%,100% 65%,0 65%); }
.te-cat-card__icon--sparkles::before { clip-path: polygon(50% 0%,55% 45%,100% 50%,55% 55%,50% 100%,45% 55%,0% 50%,45% 45%); }
.te-cat-card__icon--type::before     { clip-path: polygon(10% 0%,90% 0%,90% 15%,60% 15%,60% 100%,40% 100%,40% 15%,10% 15%); }
.te-cat-card__icon--image::before    { clip-path: polygon(0 0,100% 0,100% 70%,75% 70%,60% 90%,40% 70%,0 70%); }
.te-cat-card__icon--video::before    { clip-path: polygon(0 0,0 100%,75% 50%); }
.te-cat-card__icon--music::before    { clip-path: polygon(20% 0%,80% 0%,80% 60%,100% 80%,100% 100%,60% 100%,60% 80%,80% 60%,60% 60%,60% 0%); border-radius: 0 0 50% 50%; }

.te-cat-card__label { font-size: 0.875rem; font-weight: 600; color: var(--te-text); }
.te-cat-card:hover .te-cat-card__label { color: var(--te-primary); }
.te-cat-card__count { font-size: 0.75rem; color: var(--te-muted); }

/* --------------------------------------------------------------------------
   9. Section Headings
   -------------------------------------------------------------------------- */
.te-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--te-space-4);
  margin-bottom: var(--te-space-8);
}
.te-section-head__title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.te-section-head__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--te-primary);
  white-space: nowrap;
}
.te-section-head__link:hover { text-decoration: underline; color: var(--te-primary-dark); }

/* --------------------------------------------------------------------------
   10. Asset Grid & Cards
   -------------------------------------------------------------------------- */
.te-featured, .te-latest { padding-block: clamp(3rem, 6vw, 5rem); }
.te-featured { background: var(--te-bg); }
.te-latest   { background: var(--te-surface); }

.te-asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--te-space-5);
}
.te-asset-grid--4 { grid-template-columns: repeat(4, 1fr); }

.te-asset-card {
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-lg);
  overflow: hidden;
  transition: all var(--te-transition-slow);
  display: flex;
  flex-direction: column;
}
.te-asset-card:hover {
  border-color: var(--te-primary);
  box-shadow: var(--te-shadow-lg);
  transform: translateY(-3px);
}

.te-asset-card__thumb {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--te-bg);
}
.te-asset-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--te-transition-slow);
}
.te-asset-card:hover .te-asset-card__img { transform: scale(1.04); }
.te-asset-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--te-primary-light) 0%, var(--te-bg) 100%); }
.te-asset-card__badge {
  position: absolute;
  top: var(--te-space-3);
  left: var(--te-space-3);
  padding: 0.25rem 0.625rem;
  background: var(--te-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--te-radius-full);
}

.te-asset-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--te-space-2);
  padding: var(--te-space-4);
}
.te-asset-card__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--te-primary);
}
.te-asset-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}
.te-asset-card__title a { color: var(--te-text); }
.te-asset-card__title a:hover { color: var(--te-primary); }
.te-asset-card__author {
  display: flex;
  align-items: center;
  gap: var(--te-space-2);
  font-size: 0.8125rem;
  color: var(--te-muted);
}
.te-asset-card__avatar {
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--te-bg);
}

/* Stars */
.te-stars { display: inline-flex; gap: 2px; }
.te-star { width: 0.875rem; height: 0.875rem; }
.te-star--full path  { fill: #f59e0b; }
.te-star--half path  { fill: #f59e0b; }
.te-star--empty path { fill: #d1d5db; }

.te-asset-card__rating {
  display: flex;
  align-items: center;
  gap: var(--te-space-1);
  font-size: 0.8125rem;
}
.te-asset-card__rating-val { font-weight: 600; color: var(--te-text); }
.te-asset-card__rating-cnt { color: var(--te-muted); }

.te-asset-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--te-space-3);
  border-top: 1px solid var(--te-border);
}
.te-asset-card__price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--te-text);
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   11. Stats Band
   -------------------------------------------------------------------------- */
.te-stats {
  padding-block: clamp(3rem, 5vw, 4rem);
  background: var(--te-primary);
}
.te-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--te-space-6);
  text-align: center;
}
.te-stats__item { display: flex; flex-direction: column; gap: var(--te-space-1); }
.te-stats__value {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.te-stats__label { font-size: 0.9375rem; color: rgba(255,255,255,.75); font-weight: 500; }

/* --------------------------------------------------------------------------
   12. CTA Band
   -------------------------------------------------------------------------- */
.te-cta {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 100%);
}
.te-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te-space-8);
  flex-wrap: wrap;
}
.te-cta__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.te-cta__sub   { font-size: 1rem; color: rgba(255,255,255,.7); margin-top: var(--te-space-2); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.te-footer {
  background: #12122a;
  color: rgba(255,255,255,.8);
}
.te-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--te-space-16);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.te-footer__tagline {
  margin-top: var(--te-space-4);
  font-size: 0.9375rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.te-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--te-space-8);
}
.te-footer__col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--te-space-4);
}
.te-footer__links { display: flex; flex-direction: column; gap: var(--te-space-3); }
.te-footer__links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.7);
  transition: color var(--te-transition);
}
.te-footer__links a:hover { color: #fff; }

.te-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--te-space-5);
}
.te-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te-space-4);
  flex-wrap: wrap;
}
.te-footer__copy { font-size: 0.875rem; color: rgba(255,255,255,.4); }
.te-footer__social { display: flex; gap: var(--te-space-4); }
.te-footer__social-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  transition: color var(--te-transition);
}
.te-footer__social-link:hover { color: #fff; }

/* --------------------------------------------------------------------------
   14. Archive / Marketplace Page
   -------------------------------------------------------------------------- */
.te-archive {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: var(--te-space-8);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.te-archive__sidebar { position: sticky; top: 5rem; }
.te-sidebar__inner {
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-lg);
  padding: var(--te-space-5);
}
.te-sidebar__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--te-muted);
  margin-bottom: var(--te-space-4);
}
.te-filter-group { margin-bottom: var(--te-space-6); padding-bottom: var(--te-space-6); border-bottom: 1px solid var(--te-border); }
.te-filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.te-filter-group__title { font-size: 0.875rem; font-weight: 700; color: var(--te-text); margin-bottom: var(--te-space-3); }
.te-filter-group__list { display: flex; flex-direction: column; gap: var(--te-space-1); }
.te-filter-group__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4375rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--te-text-secondary);
  border-radius: var(--te-radius-sm);
  transition: all var(--te-transition);
  cursor: pointer;
}
.te-filter-group__item:hover, .te-filter-group__item.is-active {
  background: var(--te-primary-light);
  color: var(--te-primary);
}
.te-filter-group__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--te-muted);
  background: var(--te-bg);
  padding: 0.125rem 0.375rem;
  border-radius: var(--te-radius-full);
}
.te-filter-form { display: flex; flex-direction: column; gap: var(--te-space-3); }
.te-filter-group__tags { display: flex; flex-wrap: wrap; gap: var(--te-space-2); }

.te-archive__content {}
.te-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--te-space-4);
  margin-bottom: var(--te-space-6);
  padding: var(--te-space-4) var(--te-space-5);
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-lg);
}
.te-archive__count { font-size: 0.9375rem; color: var(--te-muted); }
.te-archive__count strong { color: var(--te-text); font-weight: 700; }
.te-sort-form label { display: none; }
.te-sort-form .te-select { width: auto; }

/* --------------------------------------------------------------------------
   15. Single Asset Detail
   -------------------------------------------------------------------------- */
.te-single { padding-block: clamp(2rem, 5vw, 4rem); }

.te-asset-detail {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: var(--te-space-10);
  margin-bottom: var(--te-space-10);
  align-items: start;
}
.te-asset-detail__preview {}
.te-asset-detail__img {
  width: 100%;
  border-radius: var(--te-radius-lg);
  box-shadow: var(--te-shadow-lg);
  aspect-ratio: 16/10;
  object-fit: cover;
}
.te-asset-detail__panel {
  position: sticky;
  top: 5rem;
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-lg);
  padding: var(--te-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--te-space-4);
}
.te-asset-detail__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--te-primary);
}
.te-asset-detail__title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.te-asset-detail__author {
  display: flex;
  align-items: center;
  gap: var(--te-space-2);
  font-size: 0.875rem;
  color: var(--te-muted);
}
.te-asset-detail__avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.te-asset-detail__rating { display: flex; align-items: center; gap: var(--te-space-2); font-size: 0.875rem; }
.te-asset-detail__rating-value { font-weight: 700; color: var(--te-text); }
.te-asset-detail__rating-count { color: var(--te-muted); }
.te-asset-detail__purchase { display: flex; flex-direction: column; gap: var(--te-space-3); padding-block: var(--te-space-4); border-block: 1px solid var(--te-border); }
.te-asset-detail__price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--te-text); }
.te-asset-detail__tags { display: flex; flex-wrap: wrap; gap: var(--te-space-2); }
.te-asset-detail__meta { display: flex; flex-direction: column; gap: var(--te-space-2); }
.te-asset-detail__meta-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.te-asset-detail__meta-row dt { color: var(--te-muted); }
.te-asset-detail__meta-row dd { font-weight: 600; color: var(--te-text); }

.te-asset-detail__body {
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-lg);
  padding: var(--te-space-8);
}
.te-asset-detail__body h2 { font-size: 1.25rem; margin-bottom: var(--te-space-5); }

.te-related { margin-top: var(--te-space-12); }
.te-related .te-section-head__title { margin-bottom: var(--te-space-6); }

/* --------------------------------------------------------------------------
   16. Blog & Pages
   -------------------------------------------------------------------------- */
.te-blog { display: grid; grid-template-columns: 1fr 18rem; gap: var(--te-space-10); padding-block: clamp(2rem, 5vw, 4rem); align-items: start; }
.te-blog:has(.te-blog__sidebar:empty), .te-blog:not(:has(.te-blog__sidebar)) { grid-template-columns: 1fr; }

.te-post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--te-space-6); }
.te-post-card {
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius-lg);
  overflow: hidden;
  transition: all var(--te-transition);
}
.te-post-card:hover { box-shadow: var(--te-shadow-md); transform: translateY(-2px); border-color: var(--te-border-strong); }
.te-post-card__thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.te-post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--te-transition-slow); }
.te-post-card:hover .te-post-card__img { transform: scale(1.04); }
.te-post-card__body { padding: var(--te-space-5); display: flex; flex-direction: column; gap: var(--te-space-3); }
.te-post-card__meta { font-size: 0.8125rem; color: var(--te-muted); }
.te-post-card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.te-post-card__title a { color: var(--te-text); } .te-post-card__title a:hover { color: var(--te-primary); }
.te-post-card__excerpt { font-size: 0.9375rem; color: var(--te-text-secondary); line-height: 1.6; }

.te-post { padding-block: 0; }
.te-post--single {}
.te-post__header { margin-bottom: var(--te-space-8); }
.te-post__hero { border-radius: var(--te-radius-lg); overflow: hidden; margin-bottom: var(--te-space-6); }
.te-post__hero-img { width: 100%; height: auto; max-height: 28rem; object-fit: cover; }
.te-post__meta { font-size: 0.875rem; color: var(--te-muted); margin-bottom: var(--te-space-3); }
.te-post__title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.te-post__body { max-width: 70ch; }
.te-post__footer { margin-top: var(--te-space-10); padding-top: var(--te-space-6); border-top: 1px solid var(--te-border); }

.te-page, .te-search-page { padding-block: clamp(2rem, 5vw, 4rem); }
.te-page__title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--te-space-6); }
.te-page__img { width: 100%; border-radius: var(--te-radius-lg); margin-bottom: var(--te-space-8); }
.te-page__body { max-width: 70ch; }

/* Archive header */
.te-archive-header { margin-bottom: var(--te-space-8); }
.te-archive-header__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.te-archive-header__query { color: var(--te-primary); }
.te-archive-header__count { font-size: 0.9375rem; color: var(--te-muted); margin-top: var(--te-space-1); }

/* Prose / rich content */
.wp-prose h2, .wp-prose h3, .wp-prose h4 { margin-top: 2em; margin-bottom: 0.6em; }
.wp-prose p  { margin-bottom: 1.25em; color: var(--te-text-secondary); line-height: 1.75; }
.wp-prose ul, .wp-prose ol { margin-bottom: 1.25em; padding-left: 1.5em; }
.wp-prose ul { list-style: disc; }
.wp-prose ol { list-style: decimal; }
.wp-prose li { margin-bottom: 0.4em; color: var(--te-text-secondary); }
.wp-prose a  { color: var(--te-primary); text-decoration: underline; }
.wp-prose img { border-radius: var(--te-radius-md); }
.wp-prose code { background: var(--te-bg); padding: 0.1em 0.4em; border-radius: var(--te-radius-sm); font-family: var(--te-font-mono); font-size: 0.875em; color: var(--te-primary); }
.wp-prose pre { background: #1a1a2e; color: #e2e8f0; padding: var(--te-space-5); border-radius: var(--te-radius-md); overflow-x: auto; margin-bottom: 1.25em; }
.wp-prose blockquote { border-left: 3px solid var(--te-primary); padding-left: var(--te-space-4); color: var(--te-muted); font-style: italic; }

/* --------------------------------------------------------------------------
   17. Pagination
   -------------------------------------------------------------------------- */
.te-pagination { margin-top: var(--te-space-10); }
.te-pagination .page-numbers {
  display: flex; flex-wrap: wrap; gap: var(--te-space-2);
  list-style: none; padding: 0; margin: 0;
}
.te-pagination .page-numbers li {}
.te-pagination .page-numbers a,
.te-pagination .page-numbers span {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--te-text-secondary);
  background: var(--te-surface);
  border: 1.5px solid var(--te-border);
  border-radius: var(--te-radius);
  transition: all var(--te-transition);
}
.te-pagination .page-numbers a:hover { border-color: var(--te-primary); color: var(--te-primary); background: var(--te-primary-light); }
.te-pagination .page-numbers .current { background: var(--te-primary); color: #fff; border-color: var(--te-primary); }
.te-pagination .page-numbers .prev, .te-pagination .page-numbers .next { width: auto; padding-inline: var(--te-space-4); }

/* --------------------------------------------------------------------------
   18. Empty State
   -------------------------------------------------------------------------- */
.te-empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--te-space-5); padding: clamp(3rem, 8vw, 6rem) var(--te-space-6);
}
.te-empty-state__icon { width: 4rem; height: 4rem; color: var(--te-border-strong); }
.te-empty-state__title { font-size: 1.375rem; font-weight: 700; }
.te-empty-state__text  { font-size: 1rem; color: var(--te-muted); max-width: 36ch; }

/* --------------------------------------------------------------------------
   19. Post Nav
   -------------------------------------------------------------------------- */
.te-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--te-space-4); margin-top: var(--te-space-8); }
.te-post-nav__prev, .te-post-nav__next {
  display: flex; flex-direction: column; gap: var(--te-space-1);
  padding: var(--te-space-4); background: var(--te-surface); border: 1.5px solid var(--te-border); border-radius: var(--te-radius-md);
  transition: all var(--te-transition);
}
.te-post-nav__next { text-align: right; align-items: flex-end; }
.te-post-nav__prev:hover, .te-post-nav__next:hover { border-color: var(--te-primary); color: inherit; }
.te-post-nav__dir { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--te-muted); }
.te-post-nav__title { font-size: 0.9375rem; font-weight: 600; color: var(--te-text); }

/* --------------------------------------------------------------------------
   20. 404
   -------------------------------------------------------------------------- */
.te-404 { display: grid; place-items: center; padding-block: clamp(4rem, 12vw, 9rem); text-align: center; }
.te-404__inner { display: flex; flex-direction: column; align-items: center; gap: var(--te-space-5); }
.te-404__code { font-size: clamp(5rem, 14vw, 10rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--te-primary-light); }
.te-404__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.te-404__text  { font-size: 1.0625rem; color: var(--te-muted); max-width: 38ch; }
.te-404__actions { display: flex; gap: var(--te-space-3); flex-wrap: wrap; justify-content: center; }
.te-404__search { text-align: center; }
.te-404__search p { font-size: 0.9375rem; color: var(--te-muted); margin-bottom: var(--te-space-3); }

/* --------------------------------------------------------------------------
   21. Search Forms
   -------------------------------------------------------------------------- */
.te-search-form__inner { display: flex; gap: var(--te-space-3); }
.te-search-form__input { flex: 1; }

/* --------------------------------------------------------------------------
   22. Widgets
   -------------------------------------------------------------------------- */
.te-widget { margin-bottom: var(--te-space-6); }
.te-widget__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--te-muted); margin-bottom: var(--te-space-4); }
.te-blog__sidebar { display: flex; flex-direction: column; gap: var(--te-space-6); }
.te-blog__sidebar .te-widget { background: var(--te-surface); border: 1.5px solid var(--te-border); border-radius: var(--te-radius-lg); padding: var(--te-space-5); }

/* --------------------------------------------------------------------------
   23. Keyframes
   -------------------------------------------------------------------------- */
@keyframes te-fade-in-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes te-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   24. WooCommerce Compatibility
   -------------------------------------------------------------------------- */
.woocommerce .woocommerce-message, .woocommerce .woocommerce-error, .woocommerce .woocommerce-info {
  border-top-color: var(--te-primary);
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--te-primary); color: var(--te-primary-fg) !important;
  border-radius: var(--te-radius); font-family: var(--te-font); font-weight: 600;
  transition: all var(--te-transition);
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--te-primary-dark) !important; }

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .te-asset-grid { grid-template-columns: repeat(3, 1fr); }
  .te-asset-detail { grid-template-columns: 1fr 20rem; }
}

@media (max-width: 1024px) {
  .te-categories__grid { grid-template-columns: repeat(3, 1fr); }
  .te-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .te-footer__top { grid-template-columns: 1fr; gap: var(--te-space-10); }
  .te-archive { grid-template-columns: 14rem 1fr; gap: var(--te-space-6); }
  .te-asset-detail { grid-template-columns: 1fr 18rem; gap: var(--te-space-6); }
  .te-blog { grid-template-columns: 1fr 15rem; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .te-nav {
    position: fixed; inset: 4rem 0 0; background: var(--te-surface);
    display: flex; flex-direction: column;
    padding: var(--te-space-5); border-top: 1px solid var(--te-border);
    transform: translateX(-100%); transition: transform var(--te-transition);
    overflow-y: auto; z-index: 90;
  }
  .te-nav.is-open { transform: translateX(0); }
  .te-nav .te-nav__list { flex-direction: column; gap: var(--te-space-1); }
  .te-nav .te-nav__list a { font-size: 1.0625rem; padding: 0.75rem 1rem; }

  .te-mobile-toggle { display: flex; }
  .te-header__actions .te-btn:not(.te-mobile-toggle) { display: none; }
  .te-header__actions .te-btn--primary { display: inline-flex; }

  .te-categories__grid { grid-template-columns: repeat(2, 1fr); }
  .te-asset-grid { grid-template-columns: repeat(2, 1fr); gap: var(--te-space-4); }
  .te-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .te-footer__cols { grid-template-columns: 1fr; gap: var(--te-space-6); }
  .te-cta__inner { flex-direction: column; text-align: center; }

  .te-archive { grid-template-columns: 1fr; }
  .te-archive__sidebar { position: static; }
  .te-sidebar__inner { display: none; }
  .te-sidebar__inner.is-open { display: block; }

  .te-asset-detail { grid-template-columns: 1fr; }
  .te-asset-detail__panel { position: static; }
  .te-blog { grid-template-columns: 1fr; }
  .te-post-grid { grid-template-columns: 1fr; }
  .te-post-nav { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .te-hero__headline { font-size: 2rem; }
  .te-asset-grid { grid-template-columns: 1fr; }
  .te-categories__grid { grid-template-columns: repeat(2, 1fr); }
  .te-stats__inner { grid-template-columns: 1fr; }
  .te-hero__search-btn { padding: 0.625rem 1rem; font-size: 0.875rem; }
}
