

.wbpro-theme-showcase {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 2em 0;
  font-family: inherit;

  --wbpro-primary: var(
    --wbpro-custom-primary,
    var(
      --wp--preset--color--primary,
      var(--theme-color, var(--primary, #b85b6c))
    )
  );
  --wbpro-primary-hover: var(--wbpro-custom-primary-hover, #9d4555);
  --wbpro-card-bg: var(
    --wbpro-custom-card-bg,
    var(--wp--preset--color--base, #ffffff)
  );
  --wbpro-text-color: var(
    --wbpro-custom-text,
    var(--wp--preset--color--contrast, #0f172a)
  );
  --wbpro-radius: var(--wbpro-custom-radius, 16px);
}

.wbpro-theme-showcase *,
.wbpro-theme-showcase *::before,
.wbpro-theme-showcase *::after {
  box-sizing: border-box;
}

.wbpro-theme-showcase--grid .wbpro-showcase-grid-inner {
  display: grid;
  gap: 24px;
}

.wbpro-theme-showcase--grid.wbpro-cols-2 .wbpro-showcase-grid-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wbpro-theme-showcase--grid.wbpro-cols-3 .wbpro-showcase-grid-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wbpro-theme-showcase--grid.wbpro-cols-4 .wbpro-showcase-grid-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .wbpro-theme-showcase--grid.wbpro-cols-3 .wbpro-showcase-grid-inner,
  .wbpro-theme-showcase--grid.wbpro-cols-4 .wbpro-showcase-grid-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .wbpro-theme-showcase--grid.wbpro-cols-2 .wbpro-showcase-grid-inner,
  .wbpro-theme-showcase--grid.wbpro-cols-3 .wbpro-showcase-grid-inner,
  .wbpro-theme-showcase--grid.wbpro-cols-4 .wbpro-showcase-grid-inner {
    grid-template-columns: 1fr;
  }
}

.wbpro-theme-showcase--slider {
  position: relative;
}

.wbpro-theme-showcase--slider .wbpro-showcase-slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.wbpro-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.wbpro-slider-arrow:hover:not(:disabled) {
  background: var(--wbpro-primary, #1e293b);
  color: #ffffff;
  border-color: var(--wbpro-primary, #1e293b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wbpro-slider-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.wbpro-showcase-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 20px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wbpro-showcase-slider-track::-webkit-scrollbar {
  display: none;
}

.wbpro-theme-showcase--slider .wbpro-showcase-card {
  flex: 0 0 320px;
  max-width: 320px;
  scroll-snap-align: start;
}

@media (max-width: 480px) {
  .wbpro-theme-showcase--slider .wbpro-showcase-card {
    flex: 0 0 280px;
    max-width: 280px;
  }
}

.wbpro-showcase-card {
  display: flex;
  flex-direction: column;
  background: var(--wbpro-card-bg, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: var(--wbpro-radius, 16px);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.wbpro-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.wbpro-showcase-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: var(--wbpro-thumb-aspect, 3 / 4);
  overflow: hidden;
  background: #f1f5f9;
}

.wbpro-showcase-thumb-wrap .wbpro-theme-thumb {
  width: 100%;
  height: 100%;
}

.wbpro-showcase-thumb-wrap .wbpro-theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.wbpro-showcase-card:hover .wbpro-showcase-thumb-wrap .wbpro-theme-thumb img {
  transform: scale(1.05);
}

.wbpro-showcase-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wbpro-showcase-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  z-index: 2;
}

.wbpro-showcase-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.wbpro-showcase-card:hover .wbpro-showcase-thumb-overlay {
  opacity: 1;
}

.wbpro-showcase-btn-view {
  background: #ffffff;
  color: #0f172a;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.wbpro-showcase-btn-view:hover {
  background: #0f172a;
  color: #ffffff;
  transform: scale(1.04);
}

.wbpro-showcase-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wbpro-showcase-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--wbpro-text-color, #0f172a);
  line-height: 1.35;
}

.wbpro-showcase-swatches {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.wbpro-showcase-swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wbpro-showcase-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.wbpro-showcase-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.wbpro-showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.wbpro-showcase-btn--demo {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  flex: 1;
}

.wbpro-showcase-btn--demo:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wbpro-showcase-btn--order {
  background: var(--wbpro-primary, #b85b6c);
  color: #ffffff;
  border: 1px solid transparent;
  flex: 1.3;
}

.wbpro-showcase-btn--order:hover {
  background: var(--wbpro-primary-hover, #9d4555);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.wbpro-modal-locked {
  overflow: hidden !important;
}

.wbpro-demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.wbpro-demo-modal--open {
  opacity: 1;
  visibility: visible;
}

.wbpro-demo-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wbpro-demo-modal__dialog {
  position: relative;
  z-index: 10;
  width: 95%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wbpro-demo-modal--open .wbpro-demo-modal__dialog {
  transform: scale(1);
}

.wbpro-demo-modal__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wbpro-demo-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbpro-demo-modal__label {
  color: #94a3b8;
}

.wbpro-demo-modal__theme-name {
  color: #ffffff;
  font-weight: 600;
}

.wbpro-demo-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wbpro-demo-modal__btn-newtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.wbpro-demo-modal__btn-newtab:hover {
  color: #ffffff;
}

.wbpro-demo-modal__btn-order {
  background: var(--wbpro-primary, #b85b6c);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wbpro-demo-modal__btn-order:hover {
  background: var(--wbpro-primary-hover, #9d4555);
}

.wbpro-demo-modal__btn-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wbpro-demo-modal__btn-close:hover {
  color: #ffffff;
}

.wbpro-demo-modal__body {
  width: 100%;
  display: flex;
  justify-content: center;
}

.wbpro-phone-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border: 11px solid #1e293b;
  border-radius: 46px;
  background: #000000;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.wbpro-phone-frame__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: #1e293b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wbpro-phone-frame__speaker {
  width: 32px;
  height: 3px;
  background: #334155;
  border-radius: 2px;
}

.wbpro-phone-frame__camera {
  width: 6px;
  height: 6px;
  background: #0f172a;
  border-radius: 50%;
  border: 1px solid #334155;
}

.wbpro-phone-frame__screen {
  position: relative;
  width: 100%;
  height: 650px;
  max-height: 75vh;
  border-radius: 35px;
  overflow: hidden;
  background: #ffffff;
}

.wbpro-phone-frame__screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.wbpro-phone-frame__loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  color: #64748b;
  font-size: 13px;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.wbpro-phone-frame__loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.wbpro-phone-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #b85b6c;
  border-radius: 50%;
  animation: wbpro-spin 0.8s linear infinite;
}

@keyframes wbpro-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .wbpro-phone-frame {
    border-width: 0;
    border-radius: 0;
    max-width: 100%;
  }

  .wbpro-phone-frame__notch {
    display: none;
  }

  .wbpro-phone-frame__screen {
    border-radius: 0;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
  }

  .wbpro-demo-modal__dialog {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .wbpro-demo-modal__header {
    border-radius: 0;
    margin-bottom: 0;
  }
}

.wbpro-showcase-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wbpro-showcase-tabs::-webkit-scrollbar {
  display: none;
}

.wbpro-showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.wbpro-showcase-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wbpro-showcase-tab.active {
  background: var(--wbpro-primary, #1e293b);
  color: #ffffff;
  border-color: var(--wbpro-primary, #1e293b);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.wbpro-showcase-tab__count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.wbpro-showcase-tab.active .wbpro-showcase-tab__count {
  background: rgba(255, 255, 255, 0.22);
}

.wbpro-showcase-card--hidden-initially {
  display: none !important;
}

.wbpro-fade-in {
  animation: wbproFadeIn 0.35s ease forwards;
}

@keyframes wbproFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wbpro-showcase-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.wbpro-showcase-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  font-family: inherit;
}

.wbpro-showcase-pagination-btn:hover {
  background: var(--wbpro-primary, #1e293b);
  color: #ffffff;
  border-color: var(--wbpro-primary, #1e293b);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}

.wbpro-showcase-pagination-btn .wbpro-load-more-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.wbpro-showcase-pagination-btn:hover .wbpro-load-more-icon {
  transform: translateY(2px);
}

.wbpro-showcase-card--see-all {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 2px dashed #93c5fd;
  text-decoration: none;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wbpro-showcase-card--see-all:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.wbpro-showcase-see-all-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 380px;
  padding: 32px 24px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.wbpro-showcase-see-all-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wbpro-showcase-see-all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.18);
  font-size: 26px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.wbpro-showcase-card--see-all:hover .wbpro-showcase-see-all-icon {
  transform: scale(1.12) rotate(8deg);
}

.wbpro-showcase-see-all-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.wbpro-showcase-see-all-desc {
  margin: 0 0 22px 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  max-width: 200px;
}

.wbpro-showcase-see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--wbpro-primary, #2563eb);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.wbpro-showcase-card--see-all:hover .wbpro-showcase-see-all-btn {
  background: var(--wbpro-primary-hover, #1d4ed8);
  transform: translateX(3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.wbpro-theme-showcase-editor-wrap .wbpro-showcase-btn,
.wbpro-theme-showcase-editor-wrap .wbpro-showcase-btn-view,
.wbpro-theme-showcase-editor-wrap .wbpro-trigger-demo-modal,
.wbpro-theme-showcase-editor-wrap .wbpro-showcase-see-all-link,
.wbpro-theme-showcase-editor-wrap .wbpro-showcase-pagination-btn,
.wbpro-theme-showcase-editor-wrap .wbpro-showcase-tab,
.editor-styles-wrapper .wbpro-showcase-btn,
.editor-styles-wrapper .wbpro-showcase-btn-view,
.editor-styles-wrapper .wbpro-trigger-demo-modal,
.editor-styles-wrapper .wbpro-showcase-tab {
  pointer-events: none !important;
  cursor: default !important;
}