/* ==========================================================
   Products (apps) page: /apps and /apps/{slug}
   ========================================================== */

/* ---------- listing ---------- */
.wh-apps-area {
  padding-bottom: 120px;
}
.wh-apps-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.wh-apps-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wh-apps-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--tp-border-1);
  border-radius: 40px;
  background: var(--tp-common-white);
  color: var(--tp-common-black);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: all 0.25s ease;
}
.wh-apps-pill:hover,
.wh-apps-pill.active {
  background: var(--tp-common-black);
  border-color: var(--tp-common-black);
  color: var(--tp-common-white);
}
.wh-apps-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wh-apps-search select,
.wh-apps-search input {
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--tp-border-1);
  border-radius: 40px;
  background: var(--tp-common-white);
  color: var(--tp-common-black);
  font-size: 15px;
  outline: none;
}
.wh-apps-search input {
  min-width: 220px;
}
.wh-apps-search select:focus,
.wh-apps-search input:focus {
  border-color: var(--tp-common-black);
}
.wh-apps-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tp-common-black);
  color: var(--tp-common-white);
  transition: background 0.25s ease;
}
.wh-apps-search button:hover {
  background: var(--tp-theme-primary, #ff5722);
}
.wh-apps-empty {
  padding: 80px 20px;
  border: 1px dashed var(--tp-border-1);
  border-radius: 20px;
  text-align: center;
  font-size: 18px;
  color: rgba(20, 20, 20, 0.6);
}

/* ---------- card ---------- */
.wh-app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--tp-border-1);
  border-radius: 20px;
  background: var(--tp-common-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wh-app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 20, 20, 0.08);
}
.wh-app-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tp-grey-1);
}
.wh-app-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.wh-app-card:hover .wh-app-card-thumb img {
  transform: scale(1.05);
}
.wh-app-badge-featured {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  padding: 4px 14px;
  border-radius: 30px;
  background: var(--tp-theme-primary, #ff5722);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.wh-app-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px;
}
.wh-app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.wh-app-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid var(--tp-border-1);
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
}
.wh-app-card-title {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.wh-app-card-title a {
  color: var(--tp-common-black);
}
.wh-app-card-title a:hover {
  color: var(--tp-theme-primary, #ff5722);
}
.wh-app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(20, 20, 20, 0.6);
}
.wh-app-meta a {
  color: inherit;
}
.wh-app-meta a:hover {
  color: var(--tp-theme-primary, #ff5722);
}
.wh-app-card-desc {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.7);
}
.wh-app-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.wh-app-platform {
  padding: 3px 12px;
  border: 1px solid var(--tp-border-1);
  border-radius: 30px;
  background: var(--tp-grey-1);
  color: var(--tp-common-black);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.wh-app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* ---------- buttons ---------- */
.wh-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--tp-common-black);
  border-radius: 40px;
  background: var(--tp-common-black);
  color: var(--tp-common-white);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.wh-app-btn:hover {
  border-color: var(--tp-theme-primary, #ff5722);
  background: var(--tp-theme-primary, #ff5722);
  color: #fff;
}
.wh-app-btn-outline {
  background: transparent;
  color: var(--tp-common-black);
}
.wh-app-btn-lg {
  height: 56px;
  padding: 0 30px;
  font-size: 16px;
}
.wh-app-btn small {
  font-size: 13px;
  opacity: 0.75;
}

/* ---------- details ---------- */
.wh-app-details-area {
  padding-top: 50px;
  padding-bottom: 80px;
}
.wh-app-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(20, 20, 20, 0.6);
}
.wh-app-back:hover {
  color: var(--tp-common-black);
}
[dir="rtl"] .wh-app-back svg {
  transform: scaleX(-1);
}
.wh-app-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 50px;
}
.wh-app-hero-logo {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border: 1px solid var(--tp-border-1);
  border-radius: 26px;
  background: #fff;
  object-fit: cover;
}
.wh-app-hero-content {
  flex: 1 1 320px;
}
.wh-app-hero-content .wh-app-meta {
  margin-bottom: 10px;
  font-size: 15px;
}
.wh-app-hero-title {
  margin-bottom: 14px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--tp-common-black);
}
.wh-app-hero-desc {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.7);
}
.wh-app-gallery {
  margin-bottom: 60px;
}
.wh-app-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--tp-grey-1);
}
.wh-app-gallery-item {
  display: block;
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}
.wh-app-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wh-app-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tp-common-black);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
  transition: background 0.25s ease, color 0.25s ease;
}
.wh-app-gallery-nav:hover {
  background: var(--tp-common-black);
  color: var(--tp-common-white);
}
.wh-app-gallery-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.wh-app-gallery-prev {
  inset-inline-start: 16px;
}
.wh-app-gallery-next {
  inset-inline-end: 16px;
}
[dir="rtl"] .wh-app-gallery-nav svg {
  transform: scaleX(-1);
}
.wh-app-gallery-thumbs {
  margin-top: 14px;
}
.wh-app-gallery-thumbs .swiper-slide {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.wh-app-gallery-thumbs .swiper-slide-thumb-active {
  border-color: var(--tp-theme-primary, #ff5722);
  opacity: 1;
}
.wh-app-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wh-app-section-title {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
  color: var(--tp-common-black);
}
.wh-app-content {
  margin-bottom: 50px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--tp-text-body);
}
.wh-app-content img {
  height: auto;
  border-radius: 12px;
}
.wh-app-content ul,
.wh-app-content ol {
  margin-bottom: 16px;
  padding-inline-start: 22px;
}
.wh-app-content ul {
  list-style: disc;
}
.wh-app-content ol {
  list-style: decimal;
}
.wh-app-info-card {
  margin-bottom: 50px;
  padding: 30px;
  border: 1px solid var(--tp-border-1);
  border-radius: 20px;
  background: var(--tp-common-white);
}
.wh-app-info-card .wh-app-section-title {
  font-size: 22px;
}
.wh-app-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tp-border-1);
  font-size: 15px;
  list-style: none;
}
.wh-app-info-list li:last-child {
  border-bottom: 0;
}
.wh-app-info-list span {
  color: rgba(20, 20, 20, 0.6);
}
.wh-app-info-list strong,
.wh-app-info-list a {
  font-weight: 600;
  text-align: end;
  word-break: break-word;
  color: var(--tp-common-black);
}
.wh-app-info-card .wh-app-btn {
  width: 100%;
  margin-top: 16px;
}
.wh-app-related {
  padding-top: 70px;
  border-top: 1px solid var(--tp-border-1);
}

@media (max-width: 991px) {
  .wh-app-hero-title {
    font-size: 44px;
  }
}
@media (max-width: 767px) {
  .wh-apps-area {
    padding-bottom: 80px;
  }
  .wh-apps-search,
  .wh-apps-search input {
    width: 100%;
  }
  .wh-apps-search input {
    min-width: 0;
    flex: 1;
  }
  .wh-app-hero-title {
    font-size: 34px;
  }
  .wh-app-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
  .wh-app-gallery-nav {
    width: 38px;
    height: 38px;
  }
}
