.wallpaper-comp-pg-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.wallpaper-comp-pg-card {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  /* background: #f9f9f9; */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wallpaper-comp-pg-image img {
  width: 100%;
  height: 100%;
}

.wallpaper-comp-pg-category {
    font-family: 'Open Sans', 'Open Sans Regular', sans-serif;
    font-size: var(--smaller-para);
    font-weight: 600;
    line-height: 1;
    background-color: #000000a3;
    color: #fff;
    display: inline-block;
    position: absolute;
    left: 10px;
    bottom: 10px;
    text-transform: uppercase;
    padding: 7px 12px;
    margin-bottom: 0;
}


.wallpaper-comp-pg-subcategory {
    font-family: 'Open Sans', 'Open Sans Regular', sans-serif;
    font-weight: 600;
    line-height: 1;
    background-color: #ffffff;
    color: #222222;
    margin-right: 0;
    display: inline-block;
    margin-bottom: 0;
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 12px;
    font-size: var(--smaller-para);
}
/*
.wallpaper-comp-pg-category {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #222;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
}
*/
.wallpaper-comp-pg-filter::after {
  content: "";
  position: absolute;
  right: 12px;
  transform: translateY(50%) rotate(90deg);
  pointer-events: none;
  background-image: url("/wp-content/uploads/2025/06/BS_icon_chevron_right.svg");
  background-repeat: no-repeat;
  background-size: 20px 20px;

  width: 20px;
  height: 20px;
}

.wallpaper-comp-pg-actions {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  position: absolute;
  gap: 10px;
  top: 0;
  right: 0;
  flex-direction: column-reverse;
}

.download-btn,
.share-btn {
  background: black;
  color: #fff;
  border: none;
  width: auto;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.download-btn:hover,
.share-btn:hover {
  background: #242328;
}

.wallpaper-comp-pg-actions .share-btn img {
  width: 24px;
  height: 24px;
}

.wallpaper-comp-pg-actions .download-btn img {
  width: 24px;
  height: 24px;
}

.wallpaper-comp-pg-image {
  position: relative;
  overflow: hidden;
  height: 197px;
}

.wallpaper-comp-pg-more-content {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s;
}

.wallpaper-comp-pg-more-content span {
  font-size: 18px;
}

.wallpaper-comp-pg-more-content img {
  width: 24px;
  height: 24px;
}

.wallpaper-comp-pg-more-content:hover {
  background: rgba(0, 0, 0, 0.95);
}

.wallpaper-comp-pg-filter {
  margin: 10px 0px 10px 0px;
  width: 100%;
}

.wallpaper-comp-pg-filter select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #f3f3f3;
  border-radius: 6px;
  background: #f3f3f3;
  color: #333;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  position: relative;
  font-weight: 600;
  font-family: "Roboto";
}

select#wallpaper-category-filter {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

p.wallpaper-comp-title {
  padding-top: 50px;
  margin: 0px;
  color: #767676;
}

#load-more-wallpapers {
  display: block;
  width: 100%;
  margin: 15px auto 0;
  padding: 12px 24px;
  font-size: 14px;
  background: #f0484a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#load-more-wallpapers:hover {
  background: #242328;
}

@media (max-width: 1020px) {
  .wallpaper-comp-pg-grid {
    flex-direction: column;
  }

  .wallpaper-comp-pg-card[data-index="2"] {
    height: 100%;
    flex: none;
    box-shadow: none;
  }

  .wallpaper-comp-pg-card[data-index="2"] .wallpaper-comp-pg-more-content a {
    color: white;
    font-size: 16px;
  }

  .wallpaper-comp-pg-card[data-index="2"] img {
    display: none;
  }

  .wallpaper-comp-pg-card[data-index="2"] .wallpaper-comp-pg-image {
    height: 50px;
    border-radius: 10px;
  }

  .wallpaper-comp-pg-card[data-index="2"] .wallpaper-comp-pg-more-content {
    background: #f04748;
  }
  .wallpaper-comp-pg-more-content span {
    font-size: 15px;
  }

  .wallpaper-comp-pg-image img {
    object-fit: cover;
  }
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #333;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
