.learn-press-themes {
  max-width: 100%;
  font-family: "DM Sans", sans-serif;
}
.learn-press-themes .wp-heading-inline {
  color: #262626;
  font-family: "DM Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: 0;
}
.learn-press-themes .lp-themes-subtitle {
  margin: 4px 0 24px;
  color: #4f4f4f;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}
.learn-press-themes a:focus,
.learn-press-themes button:focus {
  box-shadow: none;
  outline: none;
}

.lp-themes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.lp-themes-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-themes-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #e2e4e7;
  border-radius: 4px;
  color: #262626;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 150%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lp-themes-filter__item:hover, .lp-themes-filter__item:focus {
  border-color: #ffb608;
  color: #ffb608;
  background: #fffaf0;
}
.lp-themes-filter__item.active {
  border-color: #ffb608;
  color: #fff;
  background: #ffb608;
}

.lp-themes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.lp-theme-card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.lp-theme-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.lp-theme-card[hidden] {
  display: none !important;
}
.lp-theme-card__thumbnail {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f5f5f5;
}
.lp-theme-card__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.lp-theme-card__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(135deg, rgb(255, 0, 0) 0%, rgb(175, 0, 184) 100%);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.lp-theme-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}
.lp-theme-card__title {
  margin: 0 0 8px;
  color: #262626;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.lp-theme-card__description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 35px;
  margin: 0 0 14px;
  color: #666666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.lp-theme-card__footer {
  display: flex;
  margin-top: auto;
  gap: 20px;
}
.lp-theme-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.lp-theme-card__price strong {
  color: #ff3b30;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.lp-theme-card__price del {
  color: #999;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}
.lp-theme-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #262626;
  font-size: 14px;
  line-height: 1;
}
.lp-theme-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #333;
  white-space: nowrap;
}
.lp-theme-card__star {
  color: #ffb608;
  font-size: 15px;
}
.lp-theme-card__sold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.lp-theme-card__cart {
  color: #ffb608;
  font-size: 15px;
  line-height: 1;
}
.lp-theme-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: auto;
}
.lp-theme-card__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid #ffb608;
  border-radius: 4px;
  color: #fff;
  background: #ffb608;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}
.lp-theme-card__buy:visited {
  color: #fff;
}
.lp-theme-card__buy:hover, .lp-theme-card__buy:focus, .lp-theme-card__buy:active {
  border-color: #f5ac00;
  color: #fff;
  background: #f5ac00;
}
.lp-theme-card__demo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 36px;
  padding: 2px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}
.lp-theme-card__demo:visited {
  color: #666;
}
.lp-theme-card__demo:hover, .lp-theme-card__demo:focus, .lp-theme-card__demo:active {
  border-color: #bbb;
  color: #262626;
  background: #fafafa;
}

/**
 * Increase specificity to override WordPress admin button styles.
 */
.learn-press-themes .lp-theme-card .lp-theme-card__actions .lp-theme-card__buy {
  background: #ffb608;
}

@media (max-width: 1400px) {
  .lp-themes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .lp-themes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 782px) {
  .lp-themes-grid {
    grid-template-columns: 1fr;
  }
  .lp-themes-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .lp-theme-card__actions {
    grid-template-columns: 1fr;
  }
  .lp-theme-card__demo {
    width: 100%;
  }
}