.dh,
.mh {
  z-index: 3;
}

.fps-cont {
  z-index: 4;
}

.mcnt-flex {
  display: flex;
}

.lhcnt {
  width: 40%;
  padding: 15px 0 15px 15px;
}

.rhcnt {
  width: 60%;
}

.img-cnt {
  width: 100%;
  display: flex;
  padding: 15px 15px 100px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  position: sticky;
  top: 70px;
}

.img-cnt .img-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f2f2f2;
  padding-bottom: 50px;
  overflow: hidden;
}

.img-box img {
  width: 100%;
  aspect-ratio: 1/1;
}

.thms-cnt {
  width: 100px;
  padding: 0 10px 0 0;
}

.thms-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f2f2f2;
  border-radius: 5px;
  margin: 0 0 10px;
  cursor: pointer;
  transform: border 0.3s ease;
}

.thms-box.active {
  border: 2px solid #005eb8;
}

.fxd-btn-cnt {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  background: white;
  display: flex;
  flex-wrap: nowrap;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  z-index: 4;
}

.fxd-btn-cnt button {
  width: 50%;
  margin: auto;
  padding: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  color: white;
  border: none;
  cursor: pointer;
}

.fxd-btn-cnt button span {
  padding: 5px 10px;
  font-size: 16px;
}

.fxd-btn-cnt .btn-flex {
  display: inline-flex;
  flex-wrap: nowrap;
}

.add-to-cart-btn {
  background: #f60;
}

.buy-now-btn {
  background: #005eb8;
}

/*Right Side*/
.rhcnt {
  padding: 15px;
}

.breadcrumb {
  font-size: 12px;
  color: grey;
}

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

.pt-title {
  padding: 10px 0 20px 0;
  color: rgba(2, 6, 12, 0.75) #595959;
}

.pt-title p {
  color: grey;
  font-size: 12px;
}

.pt-title h1 {
  font-weight: normal;
  font-size: 14px;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.pt-title a {
  text-decoration: none;
}

.pt-pricing,
.pt-discount {
  display: flex;
  flex-wrap: nowrap;
  font-size: 24px;
}

.pt-discount {
  color: green;
  font-weight: 500;
  padding: 0 10px 0 0;
}

.pt-discount svg {
  height: 30px;
  width: 30px;
}

.pt-pricing del {
  color: grey;
}

.pt-fl-price {
  color: black;
  font-weight: 700;
  padding: 0 10px;
}

.pt-condition {
  display: inline-flex;
  flex-wrap: nowrap;
  background: linear-gradient(to right, #00cc44, white);
  color: #004d1a;
  border-radius: 20px;
  padding: 5px 20px 5px 5px;
  font-size: 12px;
  font-weight: bold;
  margin: 10px 0;
}

.pt-condition svg {
  width: 15px;
  height: 15px;
  margin: 1px 5px;
}

.dl-flex,
.services-flex {
  display: flex;
  flex-wrap: nowrap;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  margin: 10px 0;
}

.dl-flex {
  box-shadow: none;
}

.dl-flex p {
  padding: 3px 10px;
  font-weight: 500;
  color: rgba(2, 6, 12, 0.75) #595959;
}

.services-flex {
  border-top: none;
}

.services-flex .service {
  display: block;
  width: 30%;
  max-width: 200px;
  margin: 10px 15px 10px 0;
  padding: 10px;
  border-radius: 5px;
}

.service svg,
.service span {
  display: block;
  text-align: center;
  font-size: 12px;
  color: grey;
  margin: 10px auto;
}

.highlights,
.pt-details {
  margin: 20px 0;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  margin: 10px 0;
  padding: 15px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
}

.highlights ul {
  padding: 10px 20px;
}

.highlights li {
  padding: 5px 0;
  font-size: 14px;
}

.pt-details table {
  width: 100%;
  margin: 10px 0;
  max-width: 400px;
  font-size: 14px;
}

.pt-details td {
  padding: 5px 0;
}

.grey-txt {
  color: grey;
  max-width: 60px;
}

.more-pts {
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  padding: 20px;
  margin: 10px 15px;
}

.cards-flex::-webkit-scrollbar {
  display: none;
}

/* cards */

.cards-flex {
  margin: 10px 0;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 2px;
  margin: 0 5px 0 0;
}

.item-card {
  background: white;
  padding: 5px;
  height: 100%;
  border-radius: 5px;
  border: 1px solid #d9d9dd;
}

.card-img {
  width: 100%;
  aspect-ratio: 1/1.3;
  background: #f2f2f2;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
}

.card-img svg {
  position: absolute;
  right: 5px;
  top: 2px;
  height: 25px;
  width: 25px;
  color: #ccc;
}

.card-details {
  padding: 10px 5px;
}

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

.item-pub {
  font-size: 12px;
  color: grey;
}

.item-pricing,
.item-pricing span {
  display: flex;
  flex-wrap: wrap;
  white-space: nowrap;
  font-weight: 500;
  color: rgba(2, 6, 12, 0.75);
}

.item-pricing span {
  padding: 5px 5px 0 0;
}

.item-discount {
  color: green !important;
  font-size: 16px;
}

.item-discount svg {
  width: 20px;
  height: 20px;
  fill: green !important;
}

.item-del {
  text-decoration: line-through;
  color: grey !important;
}

.item-fp {
  font-weight: 600 !important;
}

.condition-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 500;
  position: absolute;
  top: 3px;
  left: 3px;
}

.condition-badge.new {
  background-color: rgba(40, 167, 69, 0.8); /* Bright Soft Green */
}

.condition-badge.used {
  background-color: rgba(0, 123, 255, 0.8); /* Bright Soft Blue */
}

.condition-badge.readable {
  background-color: rgba(108, 117, 125, 0.8); /* Bright Soft Gray */
}

.condition-badge.worn {
  background-color: rgba(220, 53, 69, 0.8); /* Bright Soft Red */
}

/* Breakpoints */
@media only screen and (max-width: 600px) {
  .mh-address,
  .mh-searchbar {
    display: none;
  }

  .mcnt {
    background: #f2f2f2;
  }

  .lhcnt {
    padding: 5px;
  }

  .mcnt-flex {
    display: block;
  }

  .rhcnt,
  .lhcnt {
    width: 100%;
  }

  .lhcnt {
    background: white;
    padding: 0;
  }

  .img-cnt {
    padding: 10px;
  }

  .img-cnt {
    flex-wrap: wrap-reverse;
    box-shadow: none;
  }

  .thms-cnt {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: 10px auto;
    width: auto;
    display: none;
  }

  .thms-box {
    margin: 0 10px;
    width: 50px !important;
    display: block;
  }

  .img-box {
    position: unset !important;
    padding: 0 !important;
  }

  .fxd-btn-cnt {
    position: fixed;
    bottom: 0;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  }

  .fxd-btn-cnt button {
    width: 48%;
    margin: auto;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px;
  }

  .fxd-btn-cnt button span {
    font-size: 14px !important;
  }

  .fxd-btn-cnt svg {
    width: 25px;
    height: 25px;
  }

  .breadcrumb {
    display: none;
  }

  .rhcnt {
    padding: 0 !important;
    background: #f2f2f2;
  }

  .dl-flex,
  .services-flex {
    display: flex;
    flex-wrap: nowrap;
    padding: 10px;
  }

  .dl-flex p {
    padding: 3px 15px;
    font-weight: 400;
    font-size: 14px;
    color: rgba(2, 6, 12, 0.75);
  }

  .dl-flex {
    padding: 15px 20px 0;
    background: white;
    border-top: 1px solid #f2f2f2;
    color: rgba(2, 6, 12, 0.75);
  }

  .dl-flex svg {
    width: 25px;
    height: 25px;
  }

  .services-flex {
    padding: 0;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    background: white;
  }

  .service {
    box-shadow: none !important;
    margin: 0 !important;
    width: 33% !important;
  }

  .service span {
    font-size: 10px;
  }

  .highlights,
  .pt-details {
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    margin: 10px 0;
    background: white;
  }

  .more-pts {
    margin: 10px 0;
    padding: 15px 0 15px 10px;
    background: white;
  }

  .item-card {
    border-color: #d9d9d9;
  }
}

.mh {
  display: none;
}

.fp-header {
  padding: 15px;
  background: white;
  z-index: 2;
  background: #fff;
  box-shadow: none;
  display: flex;
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  height: 60px;
  margin: 0 !important;
}

.fp-header span {
  text-align: left;
  margin-left: 50px;
  font-weight: 500 !important;
}

.fp-header {
  padding: 15px;
}

.fp-header svg {
  position: unset;
  fill: rgba(2, 6, 12, 0.75) !important;
}

.fp-svg {
  top: 20px;
  position: absolute !important;
}

.search-svg {
  position: absolute !important;
  right: 60px;
  top: 20px;
}

.search-div {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 40px;
  margin-right: 90px;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  width: 100%;
  max-width: 500px;
  border: 1px solid #ddd;
  display: none;
}

.search-div svg {
  position: unset;
  margin: 5px 7px;
}

.search-div input {
  padding: 5px;
  width: 100%;
  border: none;
  font-style: italic;
}

.search-div input:focus {
  outline: 0;
}

.m-cart-icon {
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
}

.m-cart-icon .cart-icon {
  left: 15px;
  color: white !important;
  position: relative !important;
}

.m-cart-icon .cart-count {
  color: white !important;
}

.m-cart-icon span {
  position: absolute;
  margin: 0;
  font-size: 12px;
}

.fs-container {
  border-top: 1px solid #ddd !important;
  border-bottom: 1px solid #ddd !important;
  margin-bottom: 0 !important;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.fs-flex {
  padding: 10px;
}

.sort-tab span {
  font-size: 14px;
  padding: 1px 7px;
}

.sort-tab svg {
  width: 20px;
  height: 20px;
}

.tabs-flex {
  margin-bottom: 0 !important;
}

.s-tab {
  border-color: #f2f2f2;
}

.s-tab span {
  font-weight: 450;
  padding-top: 7px;
}

.cards-flex {
  padding: 0 5px;
  background: white;
}

.card-link {
  padding: 0;
}

.item-card {
  border: none;
}

.card-img {
  border: none;
  padding: 5px;
  background: white;
  border: 1px solid #f2f2f2;
  z-index: 1 !important;
}

.condition-badge {
  padding: 5px 10px 10px !important;
  background-color: #ff4d4d;
  color: white;
  font-weight: 600;
  font-size: 10px;
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 10px 10px;
  text-align: center;
  border-radius: 5px 0 5px 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 80%,
    95% 90%,
    85% 80%,
    75% 90%,
    65% 80%,
    55% 90%,
    45% 80%,
    35% 90%,
    25% 80%,
    15% 90%,
    5% 80%,
    0 90%
  );
}

.item-title {
  color: rgba(2, 6, 12, 0.75) !important;
  margin: 10px 0;
  display: -webkit-box;
  overflow-wrap: break-word;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.item-pricing {
  margin: 5px 0 10px;
}

.pt-details,
.services-flex,
.highlights,
.more-pts {
  box-shadow: none !important;
  padding: 20px;
  border-bottom: 0.5px solid #ccc;
}

.img-cnt {
  padding-top: 0;
  box-shadow: none !important;
}

.thms-cnt {
  margin-top: 10px;
}

.fxd-btn-cnt {
  z-index: 5;
  position: fixed;
}

.thms-box img {
  width: 100%;
}

.img-box {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: unset !important;
  position: relative !important;
  background: white !important;
  border: 1px solid #f2f2f2;
  padding: 20px !important;
  margin: 10px 5px 0;
}

.img-box img {
  max-width: 80%;
  width: auto;
  display: block;
  margin: auto;
  aspect-ratio: 2/3 !important;
}

.img-box svg {
  position: absolute;
  right: 10px;
  top: 10px;
}

.img-box .condition-badge {
  left: 0;
  font-size: 14px;
}

.pt-pricing {
  padding: 10px 0;
}

.dl-flex {
  padding: 20px 5px 0;
}

.dl-flex svg {
  width: 20px;
  height: 20px;
}

.dl-flex p {
  padding: 0;
  font-weight: normal;
  font-style: italic;
}

.pt-details table {
  width: 100%;
  margin: 10px 0;
  max-width: 400px;
  font-size: 14px;
}

.badge-new {
  background-color: #28a745; /* Green */
}

.badge-like-new {
  background-color: #7bc67e; /* Light Green */
}

.badge-very-good {
  background-color: #007bff; /* Blue */
}

.badge-good {
  background-color: #fd7e14; /* Orange */
}

.badge-readable {
  background-color: #ffc107; /* Yellow */
  color: #212529; /* Dark text for contrast */
}

.badge-worn {
  background-color: #dc3545; /* Red-Orange */
}

.badge-damaged {
  background-color: #b02a37; /* Dark Red */
}

.badge-unknown {
  background-color: #6c757d; /* Grey */
}

.grey-txt {
  max-width: unset;
  padding-right: 10px !important;
}

@media only screen and (min-width: 992px) {
  .fp-header {
    display: none;
  }

  .fs-container {
    position: unset;
  }

  .pt-pricing {
    display: inline-flex;
  }

  .fxd-btn-cnt {
    display: none;
  }

  .fxd-btn-cnt-img-box {
    display: flex;
    position: absolute !important;
    padding: 0 10px;
    box-shadow: none;
  }

  .fxd-btn-cnt-img-box button {
    width: 48%;
    margin: auto;
    border-radius: 3px;
  }

  .img-cnt {
    padding-bottom: 70px;
  }

  .pt-details,
  .services-flex,
  .highlights,
  .more-pts {
    border-bottom: none;
  }
}

/* UI UPDATES */

.breadcrumb a {
  color: #005eb8;
  font-weight: 500;
}

.pt-title h1 {
  font-weight: 700;
  font-size: 24px;
  color: #212121;
  display: -webkit-box;
  overflow-wrap: break-word;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.img-box {
  width: 100%;
  aspect-ratio: 1/1 !important;
}

.img-box img {
  max-height: 100%;
  max-width: 100%;
}

.pt-pricing {
  background: #e6ffe6;
  padding: 15px;
  border-radius: 5px;
}

.service svg {
  fill: #005eb8;
}

.pt-details td {
  font-weight: 500;
  padding: 10px 5px 10px 0;
}

.loader {
  animation: spin 1s linear infinite;
}

/* Keyframes for the spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.card-img svg {
  position: absolute;
  right: 10px;
  top: 7px;
  height: 25px;
  width: 25px;
  color: #fff;
}

.item-card {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}

.card-img {
    border: none !important;
    padding: 0 !important;
}

.condition-badge {
    top: unset !important;
    bottom: 10px !important;
    left: 10px !important;
    clip-path: none !important;
    padding: 5px 10px !important;
    border-radius: 5px 5px !important;
    z-index: 1;
}