/**
 * GT Theme Listing — widget chrome only.
 *
 * Tab styles: .gt-el-theme-listing__tabs--style-1 … --style-5
 * 1 — Minimal text (gray → black bold)
 * 2 — Solid pill (primary fill, white text)
 * 3 — Segmented track (gray rail, white active pill)
 * 4 — Underline bar
 * 5 — Header nav (bg + underline)
 */

.elementor-widget-gt-theme-listing,
.elementor-widget-gt-theme-listing .elementor-widget-container,
.gt-el-theme-listing-wrap,
.gt-el-theme-listing__panel,
.gt-el-theme-listing {
  width: 100%;
  max-width: 100%;
}

.gt-el-theme-listing-wrap.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* ─── Tabs base ─────────────────────────────────────────────── */
.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  margin-bottom: 1.75rem;
  gap: 1.75rem;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tab,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tab {
  appearance: none;
  position: relative;
  margin: 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    font-weight 0.2s ease;
}

/* ─── Style 1 — Minimal text ────────────────────────────────── */
.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1 {
  gap: 2rem;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1 > .gt-el-theme-listing__tab,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1 > .gt-el-theme-listing__tab {
  padding: 0.25rem 0;
  font-weight: 400;
  color: #9ca3af !important;
  background: transparent !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1 > .gt-el-theme-listing__tab:hover:not(.is-active),
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1 > .gt-el-theme-listing__tab:hover:not(.is-active) {
  color: #6b7280 !important;
  background: transparent !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1 > .gt-el-theme-listing__tab.is-active,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-1 > .gt-el-theme-listing__tab.is-active {
  font-weight: 700;
  color: #111827 !important;
  background: transparent !important;
}

/* ─── Style 2 — Solid pill ──────────────────────────────────── */
.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2 {
  gap: 0.375rem;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2 > .gt-el-theme-listing__tab,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2 > .gt-el-theme-listing__tab {
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  font-weight: 500;
  color: #111827 !important;
  background: transparent !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2 > .gt-el-theme-listing__tab:hover:not(.is-active),
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2 > .gt-el-theme-listing__tab:hover:not(.is-active) {
  color: #374151 !important;
  background: rgba(17, 24, 39, 0.05) !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2 > .gt-el-theme-listing__tab.is-active,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-2 > .gt-el-theme-listing__tab.is-active {
  font-weight: 600;
  color: #ffffff !important;
  background: var(--gt-primary, #5233eb) !important;
}

/* ─── Style 3 — Segmented track ─────────────────────────────── */
.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3 {
  gap: 0.125rem;
  padding: 0.25rem;
  background: #f3f4f6 !important;
  border-radius: 999px;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3 > .gt-el-theme-listing__tab,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3 > .gt-el-theme-listing__tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  color: #6b7280 !important;
  background: transparent !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3 > .gt-el-theme-listing__tab:hover:not(.is-active),
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3 > .gt-el-theme-listing__tab:hover:not(.is-active) {
  color: #374151 !important;
  background: rgba(255, 255, 255, 0.45) !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3 > .gt-el-theme-listing__tab.is-active,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-3 > .gt-el-theme-listing__tab.is-active {
  font-weight: 600;
  color: #111827 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* ─── Style 4 — Underline ─────────────────────────────────────── */
.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4 {
  display: flex;
  width: 100%;
  gap: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4 > .gt-el-theme-listing__tab,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4 > .gt-el-theme-listing__tab {
  margin-bottom: -1px;
  padding: 0.75rem 0.125rem;
  font-weight: 500;
  color: #6b7280 !important;
  background: transparent !important;
  border-bottom: 2px solid transparent;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4 > .gt-el-theme-listing__tab:hover:not(.is-active),
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4 > .gt-el-theme-listing__tab:hover:not(.is-active) {
  color: #111827 !important;
  background: transparent !important;
  border-bottom-color: #d1d5db !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4 > .gt-el-theme-listing__tab.is-active,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-4 > .gt-el-theme-listing__tab.is-active {
  font-weight: 600;
  color: #111827 !important;
  background: transparent !important;
  border-bottom-color: var(--gt-primary, #5233eb) !important;
}

/* ─── Style 5 — Header nav (bg + underline) ─────────────────── */
.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 {
  gap: 0.25rem;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: #64748b !important;
  background: transparent !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab:not(.is-active)::after,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab:not(.is-active)::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 1.5px;
  background: var(--gt-primary, #5233eb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  border-radius: 1px;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab:hover:not(.is-active),
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab:hover:not(.is-active) {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab:hover:not(.is-active)::after,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab:hover:not(.is-active)::after {
  transform: scaleX(1);
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab.is-active,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab.is-active {
  font-weight: 600;
  color: var(--gt-primary, #5233eb) !important;
  background: var(--gt-accent-subtle, #f0edfd) !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab.is-active::after,
.gt-el-theme-listing-wrap .gt-el-theme-listing__tabs--style-5 > .gt-el-theme-listing__tab.is-active::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 1.5px;
  background: var(--gt-primary, #5233eb);
  border-radius: 1px;
}

.gt-el-theme-listing__carousel {
  position: relative;
}

.gt-el-theme-listing__carousel-viewport {
  overflow: hidden;
}

.gt-el-theme-listing--carousel .gt-el-theme-listing__carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  grid-template-columns: none;
}

.gt-el-theme-listing--carousel .gt-el-theme-listing__carousel-track::-webkit-scrollbar {
  display: none;
}

.gt-el-theme-listing--carousel .gt-el-theme-listing__carousel-track > .theme-card {
  flex: 0 0 calc((100% - (var(--gt-listing-slides, 3) - 1) * 1.5rem) / var(--gt-listing-slides, 3));
  scroll-snap-align: start;
  min-width: 280px;
}

.gt-el-theme-listing__carousel-btn {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--gt-border, #e2e8f0);
  background: #fff;
  color: var(--gt-text, #0f172a);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.gt-el-theme-listing__carousel-btn--prev { left: -0.75rem; }
.gt-el-theme-listing__carousel-btn--next { right: -0.75rem; }

.gt-el-theme-listing__empty {
  padding: 2rem;
  text-align: center;
  color: var(--gt-text-muted, #64748b);
}

/* Load More — alignment + Download-style outline-neutral button */
.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-pagination--load-more,
.gt-el-theme-listing-wrap .gt-pagination--load-more {
  display: flex;
  width: 100%;
  margin-top: 2.5rem;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-pagination--load-more > .gt-btn,
.gt-el-theme-listing-wrap .gt-pagination--load-more > .gt-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  min-width: auto !important;
  height: auto !important;
  padding: 0.625rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #334155 !important;
  background: #fff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: var(--gt-radius-lg, var(--gt-radius, 0.75rem)) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.elementor-widget-gt-theme-listing .gt-el-theme-listing-wrap .gt-pagination--load-more > .gt-btn:hover:not(:disabled),
.gt-el-theme-listing-wrap .gt-pagination--load-more > .gt-btn:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: color-mix(in srgb, var(--gt-primary, #5233eb) 35%, transparent) !important;
  color: var(--gt-primary, #5233eb) !important;
}
