/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Umai-p Section */
.Umai-p {
  position: relative;
  background: rgba(255, 255, 255, 0.397);
  padding: 4rem 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

/* Decorative floating objects */
.Umai-p::before,
.Umai-p::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.Umai-p::before {
  width: 120px;
  height: 120px;
  background: #007BFF;
  top: 20%;
  left: -60px;
}

.Umai-p::after {
  width: 200px;
  height: 200px;
  background: #FF4136;
  bottom: -60px;
  right: -80px;
}

/* Keep content above blur and objects */
.Umai-p * {
  position: relative;
  z-index: 1;
}

.Umai-p h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.Umai-p p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-shp {
  background-color: #000;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-shp:hover {
  background-color: #444;
}

/* Products Section */
.products {
  padding: 2rem 1rem;
  max-width: 1858px;
  margin: auto;
  padding-bottom: 100px;
}

.products h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  justify-content: center;
}

/* Product Card Styles */
.product-card {
  background: #fff;
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
  height: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.product-card a {
  text-decoration: none;
  color: inherit;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

.badge {
  position: absolute;
  top: 10px;
  left: 0;
  background: #4CAF77;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  font-weight: 500;
}

.badge.Pro, 
.badge:contains("Paid") {
  background: #f44336;
}

/* Product Content */
.product-card h3 {
  font-size: 1.2rem;
  margin: 15px 15px 10px;
  color: #333;
}

.product-meta {
  list-style: none;
  padding: 0 15px;
  margin-bottom: 10px;
}

.by {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-bottom: 5px;
}

.by span {
  color: #5879b9;
  font-style: initial;
}

/* Rating Stars */
.rating {
  display: inline-block;
}

.rating i {
  color: rgb(241, 205, 1);
  margin-right: 2px;
  font-size: 0.9rem;
}

/* Stats Section */
.stats {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0 15px;
  font-size: 0.9rem;
  color: #555;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  align-items: center;
}

.stats-item {
  display: flex;
  align-items: center;
  padding-right: 3px;
}

.stats-item i {
  color: #666;
  margin-right: 3px;
}

/* Likes button */
.like-btn {
  cursor: pointer;
  padding-right: 6px;
}

.like-btn:hover {
  color: #f44336;
}
.views {
  padding-right: 3px;
}
/* Price and ribbon */
.price-sales-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  margin: 10px 0;
 
}

.item-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}


.fa-thumbs-up{
margin-bottom: 0px;
}
/* Action Buttons */
.product-actions {
  display: flex;
  justify-content: flex-end; /* 👈 push actions to the right */
  align-items: center;
  gap: 10px;
  padding: 15px;
  margin-top: auto;
}

.btn-preview,
.btn-cart,
.btn-download {
  display: inline-flex; /* make a and button behave similarly */
  align-items: center;  /* vertically center text */
  justify-content: center; /* horizontally center text */
  padding: 10px;
  font-size: 0.9rem;
  border: 1px solid #0064ff;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: rgb(1, 83, 155);
  background: #ffffff;
  transition: 0.3s;
}

.btn-preview:hover,
.btn-cart:hover,
.btn-download:hover {
  background-color: #008CBA;
  border-color: #0351c7;
  color: #ffffff;
}


/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  width: 100%;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 569px) and (max-width: 865px) {

  .btn-preview, .btn-cart, .btn-download {
  padding: 0.7rem;
  font-size: 0.7rem;
  }
}


@media (max-width: 729px) {
  .btn-preview, .btn-cart, .btn-download {
    padding: 0.5rem;
    font-size: 0.6rem;
  }
}
@media (max-width: 660px) {
  .btn-preview, .btn-cart, .btn-download {
    padding: 0.4rem;
    font-size: 0.5rem;
  }

  .ribbon-2{
    --t: 18px;
    font-size: 0.8rem;
  }
}
@media (max-width: 592px) {
.btn-preview, .btn-cart, .btn-download{

  background: #ffffff;

}
}
@media (max-width: 768px) {
  .product-card img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .products {
    padding: 1rem;
  }

  
}