@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Padauk:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans";
}

/* Section */
.similar-finds-section {
  background: #ffffff;
  padding:20px;
  text-align: center;
  padding-top: 40px;
}
.similar-title {
  font-size: 24px;
  font-weight: 600;
  color: #3f3f3f;
  position: relative;
  margin-bottom: 32px;
}

.similar-title::after {
  content: "";
  width: 130px;
  height: 2px;
  background: #a10404;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
}

.similar-list {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Card */
.similar-card {
  width: 170px;
  text-align: center;
}

.similar-card img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
}

.similar-card h3 {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #3a3f45;
}

.brand {
  font-size: 12px;
  color: #716b6b;
  margin: 4px 0;
}

.price {
  font-size: 16px;
  font-weight: 400;
  color: #3f3f3f;
  margin-top: 4px;
}

.old-price {
  text-decoration: line-through;
  color: #716b6b;
  font-size: 12px;
  margin-left: 4px;
}

.offer {
  color: #3f3f3f;
  margin-left: 4px;
  font-size: 13px;
}

/* button */
.load-more-btn {
  display: block;
  margin: 20px auto 0;
  font-size: 20px;
  background: none;
  border: none;
  color: #a10404;
  cursor: pointer;
}

/*Recently Viewed*/
.recently-viewed-section {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
}

.rv-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  position: relative;
  margin-bottom: 32px;
}

.rv-title::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 2px;
  background: #a10404;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
}

.rv-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* CARD */
.rv-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.rv-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.rv-img {
  position: relative;
}

.rv-img img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

/* WISHLIST ICON */
.rv-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.rv-wishlist img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* RATING */
.rv-rating {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ffffff40, #00000020);
  backdrop-filter: blur(2px);
  padding: 3px 8px;
  border-radius: 2px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rv-rating img {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin: 0 2px;
  transform: translateY(-1px);
}

.rv-rating span {
  color: #fff;
  opacity: 0.9;
  font-weight: 500;
}

/* PRODUCT NAME */
.rv-name {
  font-size: 16px;
  margin-top: 12px;
  color: #3d3434;
  font-weight: 600;
}

.rv-rating-media {
  display: none;
}

/* COMPANY + STATE */
.rv-line {
  margin-top: 4px;
}
.rv-company {
  font-size: 13px;
  color: #716b6b;
  font-weight: 400;
  margin-right: 5px;
}

.rv-state {
  font-size: 12px;
  color: #716b6b;
  font-weight: 400;
}
.rv-scroll-row {
  display: contents;
}

/* FREE + LEFT ONLY TAGS */
.rv-tags {
  margin-top: 10px;
  font-size: 12px;
}

.rv-tags .free {
  color: #009605;
  font-weight: 400;
  font-size: 12px;
}

.rv-tags .left {
  color: #ff0000;
  margin-left: 10px;
  font-weight: 400;
  font-size: 12px;
}

/* PRICE */
.rv-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.rv-price {
  font-size: 16px;
  color: #3f3f3f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rv-title-mob {
  display: none;
}
.rv-price .old {
  text-decoration: line-through;
  color: #999;
}

.rv-price .off {
  color: #a10404;
}

.rv-share img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.85;
  cursor: pointer;
  transition: 0.2s;
}

/* Responsive Similar Finds */
@media (min-width: 1025px) and (max-width: 1235px) {
  .rv-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .rv-card {
    padding: 10px;
  }

  /* .rv-img img {
    height: 150px;
  } */

  .rv-name {
    font-size: 13px;
  }

  .rv-company,
  .rv-state {
    font-size: 11px;
  }

  .rv-price {
    font-size: 13px;
  }

  .rv-tags {
    font-size: 11px;
  }

  .rv-rating img {
    width: 12px;
    height: 12px;
    transform: translateY(-1px);
  }

  .rv-rating {
    font-size: 12px;
    padding: 2px 6px;
  }
}

@media (min-width: 595px) and (max-width: 1024px) {
  .similar-title {
    text-align: left;
    margin-left: 20px;
    margin-bottom: 20px;
  }

  .similar-title::after {
    display: none;
  }
  .similar-list {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 20px;
    padding-bottom: 20px;
  }

  .similar-card {
    width: 150px;
    flex: 0 0 auto;
  }

  .similar-card img {
    width: 90px;
    height: 90px;
  }
  .load-more-btn {
    margin: 0px 0px 0 auto; /* right align */
    display: block;
    text-align: right;
    font-size: 16px;
  }
  .offer {
    color: #a10404;
    font-size: 8px;
  }
  .price {
    font-size: 14px;
    font-weight: 500;
  }
  .old-price {
    font-size: 10px;
  }
  .brand {
    font-size: 12px;
  }
}

@media (min-width: 320px) and (max-width: 595px) {
  .similar-finds-section {
    background: #efdfdf;
  }

  .similar-title {
    text-align: left;
    color: #a10404;
    margin-bottom: 20px;
    font-size: 18px;
  }
  .rv-share img{
    width: 18px;
    height: 18px;
  }
  .similar-card h3{
    font-size: 16px;
  }

  .similar-title::after {
    display: none;
  }

  .similar-list {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 10px;
    padding-bottom: 20px;
  }

  .similar-card {
    width: 150px;
    flex: 0 0 auto;
  }

  .similar-card img {
    width: 90px;
    height: 90px;
  }

  .load-more-btn {
    margin: 0px 0px 0 auto;
    display: block;
    text-align: right;
    font-size: 16px;
  }
  .offer {
    color: #a10404;
    font-size: 8px;
  }

  .price {
    font-size: 14px;
    font-weight: 500;
  }

  .old-price {
    font-size: 10px;
  }

  .brand {
    font-size: 10px;
  }
}

/* Responsive Recently Viewed */
@media (min-width: 1024px) and (max-width: 1470px) {
  .similar-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: space-evenly;
  }

  .similar-card {
    width: 130px;
    flex: 0 0 130px;
  }

  .similar-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
  }

  .similar-card-title {
    font-size: 13px;
  }

  .similar-price {
    font-size: 14px;
  }
}

@media (min-width: 595px) and (max-width: 1024px) {
  .rv-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .rv-title {
    text-align: left;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #3f3f3f;
  }

  .rv-title::after {
    display: none;
  }

  .rv-card {
    display: flex;
    flex-direction: row;
    min-width: 420px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .rv-img {
    width: 140px;
    min-width: 140px;
    height: 170px;
  }

  .rv-img img {
    width: 100%;
    height: 188px;
    object-fit: cover;
  }

  .rv-wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
  }

  .rv-wishlist img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .rv-rating {
    display: none;
  }

  .rv-details {
    display: flex;
    flex-direction: column;
    width: calc(100% - 140px);
    max-width: calc(100% - 140px);
    gap: 6px;
  }

  .rv-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
  }

  .rv-rating-media {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
  }

  .rv-company {
    font-size: 14px;
    color: #555;
    white-space: normal;
    word-break: break-word;
  }

  .rv-state {
    font-size: 13px;
    color: #777;
    white-space: normal;
    word-break: break-word;
  }

  .rv-tags {
    color: #009605;
    font-weight: 600;
    margin: 0;
    display: block;
  }

  .rv-bottom-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .rv-price {
    font-size: 16px;
    display: flex;
    gap: 6px;
  }

  .rv-share img {
    width: 22px;
    height: 22px;
  }
  .rv-state {
    display: block;
    margin-top: 2px;
  }
}

@media (max-width: 595px) and (min-width: 320px) {
  .rv-row-1 {
    background: #efdfdf99;
    padding: 12px 0;
    margin-left: -16px;
    margin-right: -16px;
  }

  .rv-row-1 .rv-title-mob {
    font-size: 18px;
    font-weight: 700;
    color: #a10404;
    margin-bottom: 10px;
    padding-left: 12px;
    display: block;
  }

  .rv-row-1 .rv-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-left: 12px;
    padding-bottom: 10px;
  }

  .rv-row-1 .rv-scroll-row::-webkit-scrollbar {
    display: none;
  }

  .rv-row-1 .rv-card {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-width: 190px;
  }

  .rv-row-1 .rv-img {
    width: 190px;
    height: 120px;
  }

  .rv-row-1 .rv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  .rv-row-1 .rv-share img {
    width: 14px;
    height: 14px;
  }

  .rv-row-1 .rv-rating-media {
    display: flex;
    align-items: center;
    font-size: 10px;
    gap: 3px;
    margin-top: 5px;
  }

  .rv-row-1 .rv-bottom-row {
    margin-top: 5px;
  }

  .rv-row-1 .rv-tags {
    margin-top: 5px;
    font-size: 10px;
  }
  .rv-row-1 .rv-state,
  .rv-row-1 .rv-wishlist {
    display: flex;
    font-size: 12px;
  }
  .rv-row-1 .rv-rating,
  .rv-title {
    display: none !important;
  }

  .rv-row-1 .rv-name {
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
  }

  .rv-row-1 .rv-company {
    font-size: 12px;
    color: #777;
  }

  .rv-row-1 .rv-price {
    font-size: 12px;
    margin-top: -10px;
  }
}

@media (max-width: 595px) and (min-width: 410px) {
  .rv-row-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .rv-row-2 .rv-card {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  }

  /* Image */
  .rv-row-2 .rv-img {
    width: 100%;
    height: 120px;
  }

  .rv-row-2 .rv-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
  }

  .rv-row-2 .rv-wishlist {
    width: 8px;
    height: 8px;
    display: flex;
    margin-right: 6px;

  }
  .rv-row-2 .rv-rating {
    display: none !important;
  }

  /* NAME */
  .rv-row-2 .rv-name {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.3;
  }

  /* Rating media (use this instead of bubble rating) */
  .rv-row-2 .rv-rating-media {
    display: flex !important;
    gap: 4px;
    align-items: center;
    font-size: 12px;
    margin-top: 3px;
  }

  .rv-row-2 .rv-rating-media img {
    width: 12px;
    height: 12px;
  }

  /* Line: company + state */
  .rv-row-2 .rv-line {
    margin-top: 4px;
  }

  .rv-row-2 .rv-company {
    font-size: 12px;
    color: #555;
  }

  .rv-row-2 .rv-state {
    display: block;
    font-size: 11px;
    color: #777;
  }

  .rv-row-2 .rv-share img {
    width: 14px;
    height: 14px;
    margin-bottom: -2px;
  }

  .rv-row-2 .rv-wishlist img {
    width: 16px;
    height: 16px;
  }

  /* Only FREE Delivery */
  .rv-row-2 .rv-tags {
    margin-top: 6px;
  }

  .rv-row-2 .rv-tags .free {
    color: #009605;
    font-weight: 600;
    font-size: 12px;
  }

  /* PRICE */
  .rv-row-2 .rv-bottom-row {
    margin-top: 8px;
  }

  .rv-row-2 .rv-price {
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
  }

  .rv-row-2 .rv-price .old {
    font-size: 11px;
  }

  .rv-row-2 .rv-price .off {
    font-size: 11px;
    color: #a10404;
  }
}
.rv-share .share-popup img {
  width: 25px;
  height: 25px;
  cursor: pointer;
  transition: transform 0.2s ease;
}