/* Dunkage Templates Left Pane V3 Force Layout */

.templates-v3-body {
  background:
    radial-gradient(circle at top left, rgba(91,46,229,.10), transparent 30%),
    radial-gradient(circle at top right, rgba(255,227,108,.16), transparent 28%),
    #f8f7ff;
}

.templates-v3-nav {
  width: min(1540px, calc(100% - 42px)) !important;
  max-width: 1540px !important;
}

.templates-v3-page {
  width: min(1540px, calc(100% - 42px)) !important;
  max-width: 1540px !important;
  margin: 0 auto 50px !important;
}

.templates-v3-header {
  margin: 22px 0 22px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 18px !important;
  padding: 28px !important;
  border-radius: 34px !important;
  background:
    linear-gradient(135deg, rgba(91,46,229,.10), rgba(255,227,108,.14)),
    rgba(255,255,255,.82) !important;
  border: 1px solid rgba(91,46,229,.10) !important;
  box-shadow: 0 24px 70px rgba(61,35,138,.10) !important;
}

.templates-v3-header h1 {
  margin: 6px 0 6px !important;
  color: #24194d !important;
  font-size: clamp(34px, 4vw, 64px) !important;
  line-height: .9 !important;
  letter-spacing: -.065em !important;
}

.templates-v3-header p {
  margin: 0 !important;
  max-width: 720px !important;
  color: rgba(36,25,77,.68) !important;
  font-weight: 850 !important;
}

.templates-v3-layout {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) !important;
  gap: 26px !important;
  align-items: start !important;
}

.templates-v3-sidebar {
  min-width: 0 !important;
}

.templates-v3-sidebar-inner {
  position: sticky !important;
  top: 18px !important;
  max-height: calc(100vh - 36px) !important;
  overflow: hidden !important;
  padding: 18px !important;
  border-radius: 32px !important;
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(91,46,229,.10) !important;
  box-shadow: 0 26px 80px rgba(61,35,138,.12) !important;
  backdrop-filter: blur(18px) !important;
}

.templates-v3-filter-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.templates-v3-filter-head strong {
  display: block !important;
  color: #24194d !important;
  font-size: 30px !important;
  line-height: .95 !important;
  letter-spacing: -.055em !important;
}

.templates-v3-filter-head span {
  display: block !important;
  margin-top: 5px !important;
  color: rgba(36,25,77,.62) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.templates-v3-filter-head a {
  color: #5b2ee5 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-decoration: none !important;
}

.templates-v3-search {
  display: grid !important;
  gap: 9px !important;
  margin-bottom: 14px !important;
}

.templates-v3-search label,
.templates-v3-category-title strong {
  color: rgba(36,25,77,.72) !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

.templates-v3-search-box {
  min-height: 46px !important;
  border-radius: 17px !important;
  background: #fff !important;
  border: 1px solid rgba(91,46,229,.12) !important;
  box-shadow: 0 12px 30px rgba(61,35,138,.07) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
}

.templates-v3-search-box input {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  width: 100% !important;
  min-width: 0 !important;
  color: #24194d !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.templates-v3-search-box a {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(91,46,229,.10) !important;
  color: #5b2ee5 !important;
  text-decoration: none !important;
  font-weight: 1000 !important;
}

.templates-v3-search button {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: #5b2ee5 !important;
  color: #fff !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
  box-shadow: 0 14px 28px rgba(91,46,229,.18) !important;
}

.templates-v3-mini-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.templates-v3-mini-stats article {
  padding: 13px !important;
  border-radius: 19px !important;
  background: linear-gradient(135deg, rgba(91,46,229,.08), rgba(255,227,108,.10)) !important;
  border: 1px solid rgba(91,46,229,.08) !important;
}

.templates-v3-mini-stats strong {
  display: block !important;
  color: #24194d !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.templates-v3-mini-stats span {
  display: block !important;
  margin-top: 5px !important;
  color: rgba(36,25,77,.62) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.templates-v3-category-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 9px !important;
}

.templates-v3-category-title span {
  color: rgba(36,25,77,.46) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.templates-v3-category-list {
  max-height: calc(100vh - 355px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 6px 0 0 !important;
  display: grid !important;
  gap: 8px !important;
}

.templates-v3-category-list::-webkit-scrollbar {
  width: 8px;
}

.templates-v3-category-list::-webkit-scrollbar-thumb {
  background: rgba(91,46,229,.24);
  border-radius: 999px;
}

.templates-v3-category-list::-webkit-scrollbar-track {
  background: rgba(91,46,229,.06);
  border-radius: 999px;
}

.templates-v3-category-item {
  width: 100% !important;
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid rgba(91,46,229,.08) !important;
  color: #24194d !important;
  text-decoration: none !important;
  box-shadow: 0 9px 22px rgba(61,35,138,.05) !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.templates-v3-category-item:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(61,35,138,.09) !important;
}

.templates-v3-category-item.active {
  background: linear-gradient(135deg, #5b2ee5, #6f47ff) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 18px 38px rgba(91,46,229,.26) !important;
}

.templates-v3-cat-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 15px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: rgba(91,46,229,.10) !important;
  color: #5b2ee5 !important;
  font-weight: 1000 !important;
}

.templates-v3-category-item.active .templates-v3-cat-icon {
  background: rgba(255,255,255,.18) !important;
  color: #ffe36c !important;
}

.templates-v3-cat-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.templates-v3-cat-text {
  min-width: 0 !important;
}

.templates-v3-cat-text strong {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.12 !important;
  font-weight: 1000 !important;
  white-space: normal !important;
}

.templates-v3-cat-text em {
  display: block !important;
  margin-top: 3px !important;
  font-style: normal !important;
  color: rgba(36,25,77,.55) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.templates-v3-category-item.active .templates-v3-cat-text em {
  color: rgba(255,255,255,.76) !important;
}

.templates-v3-category-item b {
  padding: 5px 7px !important;
  border-radius: 999px !important;
  background: #ffe36c !important;
  color: #24194d !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
}

.templates-v3-results {
  min-width: 0 !important;
}

.templates-v3-active-category {
  margin: 0 0 16px !important;
  min-height: 150px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 18px !important;
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(91,46,229,.10) !important;
  box-shadow: 0 24px 70px rgba(61,35,138,.09) !important;
}

.templates-v3-active-category img {
  width: 100% !important;
  height: 100% !important;
  min-height: 150px !important;
  object-fit: cover !important;
}

.templates-v3-active-category div {
  padding: 22px 22px 22px 0 !important;
  align-self: center !important;
}

.templates-v3-active-category span {
  color: #5b2ee5 !important;
  font-weight: 1000 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
}

.templates-v3-active-category h2 {
  margin: 6px 0 !important;
  color: #24194d !important;
  font-size: clamp(28px, 3vw, 46px) !important;
  line-height: .95 !important;
  letter-spacing: -.055em !important;
}

.templates-v3-active-category p {
  margin: 0 !important;
  color: rgba(36,25,77,.66) !important;
  font-weight: 850 !important;
}

.templates-v3-toolbar {
  margin: 0 0 18px !important;
  border-radius: 26px !important;
  padding: 16px 18px !important;
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(91,46,229,.10) !important;
  box-shadow: 0 18px 54px rgba(61,35,138,.08) !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  align-items: center !important;
}

.templates-v3-toolbar strong {
  display: block !important;
  color: #24194d !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
}

.templates-v3-toolbar span {
  display: block !important;
  margin-top: 3px !important;
  color: rgba(36,25,77,.58) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.templates-v3-per-page {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  white-space: nowrap !important;
}

.templates-v3-per-page label {
  color: rgba(36,25,77,.60) !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}

.templates-v3-per-page select {
  min-height: 40px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(91,46,229,.12) !important;
  background: #fff !important;
  padding: 0 10px !important;
  color: #24194d !important;
  font-weight: 1000 !important;
}

.templates-v3-grid.template-grid {
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)) !important;
  gap: 18px !important;
}

.templates-v3-card {
  min-width: 0 !important;
}

.templates-v3-cover {
  height: 150px !important;
}

.templates-v3-pagination {
  margin-top: 26px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.templates-v3-pagination a,
.templates-v3-pagination span {
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 13px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  border: 1px solid rgba(91,46,229,.10) !important;
  color: #24194d !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  box-shadow: 0 10px 24px rgba(61,35,138,.06) !important;
}

.templates-v3-pagination div {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.templates-v3-pagination a.active {
  background: #5b2ee5 !important;
  color: #fff !important;
}

.templates-v3-pagination a.disabled {
  opacity: .44 !important;
  pointer-events: none !important;
}

.templates-v3-empty {
  border-radius: 28px !important;
  padding: 44px !important;
  text-align: center !important;
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(91,46,229,.10) !important;
  box-shadow: 0 24px 70px rgba(61,35,138,.09) !important;
}

.templates-v3-empty div {
  font-size: 42px !important;
}

.templates-v3-empty h2 {
  margin: 10px 0 6px !important;
  color: #24194d !important;
}

.templates-v3-empty p {
  margin: 0 !important;
  color: rgba(36,25,77,.62) !important;
  font-weight: 850 !important;
}

@media (max-width: 1120px) {
  .templates-v3-layout {
    grid-template-columns: 290px minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .templates-v3-grid.template-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .templates-v3-nav,
  .templates-v3-page {
    width: min(100% - 26px, 1540px) !important;
  }

  .templates-v3-header {
    display: grid !important;
    padding: 22px !important;
  }

  .templates-v3-layout {
    grid-template-columns: 1fr !important;
  }

  .templates-v3-sidebar-inner {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
  }

  .templates-v3-category-list {
    max-height: 265px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .templates-v3-active-category {
    grid-template-columns: 1fr !important;
  }

  .templates-v3-active-category img {
    height: 170px !important;
  }

  .templates-v3-active-category div {
    padding: 0 20px 20px !important;
  }

  .templates-v3-toolbar {
    display: grid !important;
  }
}

@media (max-width: 560px) {
  .templates-v3-category-list {
    grid-template-columns: 1fr !important;
  }

  .templates-v3-mini-stats {
    grid-template-columns: 1fr !important;
  }

  .templates-v3-grid.template-grid {
    grid-template-columns: 1fr !important;
  }

  .templates-v3-pagination div {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}
