  @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}
  .containerproduct {
    max-width: 99%;
    position: relative;
    margin: auto;
    height: auto;
    background: white;
    box-shadow: 5px 5px 10px 3px rgba(0, 0, 0, 0.3);
    font-size: 11pt;
  }

  .right {
    width: 50%;
    padding:0 10px;
    height: 90vh;
    overflow: auto;

    /* Scrollbar Styling */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,0.2) transparent; /* Firefox */
  }

  /* WebKit (Chrome, Edge, Safari) */
  .right::-webkit-scrollbar,.left::-webkit-scrollbar,.rightnav::-webkit-scrollbar {
    width: 4px; /* Narrow scrollbar */
  }

  .right::-webkit-scrollbar-track,.left::-webkit-scrollbar-track,.rightnav::-webkit-scrollbar-track {
    background: transparent;
  }

  .right::-webkit-scrollbar-thumb,.left::-webkit-scrollbar-thumb,.rightnav::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }
  .left {
    width: 25%;
    padding: 10px;
    height: 90vh;
    overflow: auto;
    /* Scrollbar Styling */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,0.2) transparent; /* Firefox */
  }
  .rightnav {
    width: 25%;
    border-left: .7rem solid whitesmoke;
    height: 90vh;
    overflow: auto;
    /* Scrollbar Styling */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,0.2) transparent; /* Firefox */
  }
  .flex {
    display: flex;
    justify-content: left;
  }

  .flex1 {
    display: flex;
    width: 100%;
    padding: 3px 2rem;
    justify-content: space-between;
  }

  .main_image {
    width: auto;
    height: auto;
    overflow: hidden;
    position: relative;   /* required so .a_rating anchors to it */
  }
  .main_image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
/* top-right stacked badges */
/* ===== Badge container: top-right, vertical stack, adjustable sizes ===== */
.a_rating {
  position: absolute;
  top: 8px;              /* distance from top of parent */
  right: 8px;            /* distance from right of parent */
  display: flex;
  flex-direction: column;
  gap: 6px;              /* space between stacked badges */
  align-items: flex-end; /* right-align the badges (their right edges line up) */
  z-index: 999;
  pointer-events: auto;

  /* sizing variables — tweak these to change badge size globally */
  --badge-h: 36px;       /* badge height */
  --badge-w: 104px;      /* badge minimum width (pill) */
  --badge-font: 13px;    /* text size inside pill */
}

/* ===== Base pill badge (uniform sizing on desktop/tablet) ===== */
.cond-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--badge-h);
  min-width: var(--badge-w);
  padding: 0 10px;
  border-radius: 999px;        /* pill */
  font-size: var(--badge-font);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  justify-content: flex-start; /* icon left, text to the right */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform .14s ease, box-shadow .14s ease;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 22px rgba(3,7,18,0.10);
}

/* icon consistent sizing */
.cond-badge i {
  width: 18px;
  height: 18px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* label truncation safety */
.cond-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hover / focus micro-interaction (subtle) */
.cond-badge:hover,
.cond-badge:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(3,7,18,0.14);
  outline: none;
}

/* ===== Color variants (keep your colors) ===== */
.cond-refurb {
  background: linear-gradient(180deg,#06b6d4 0%, #059669 100%);
  box-shadow: 0 8px 22px rgba(5,150,105,0.12);
}
.cond-used {
  background: linear-gradient(180deg,#f59e0b 0%, #d97706 100%);
  box-shadow: 0 8px 22px rgba(217,119,6,0.11);
}
.cond-adult {
  background: linear-gradient(180deg,#ef4444 0%, #b91c1c 100%);
  box-shadow: 0 8px 22px rgba(185,28,28,0.11);
}

/* ===== Responsive: compact & sizable on smaller viewports ===== */
/* Slightly reduce size on narrow tablets/large phones */
@media (max-width: 520px) {
  .a_rating { top: 6px; right: 6px; gap: 6px; --badge-h:34px; --badge-w:96px; --badge-font:12px; }
}


  .option{
    background: #fff;
  }
  .option img {
    width: 75px;
    height: 75px;
    padding: 10px;
  }

  .right {
    padding:10px;
  }

  .right h3 {
    color: #736f75;
    margin: 10px 0 10px 0;
    font-size: 12pt;
  font-family: "Abel", sans-serif;
  font-weight: 600;
  font-style: normal;  }

  h5,
  p,
  small {
    color: #837D7C;
  }

  h4 {
    color: #424242;
  }

  p {
    margin: 20px 0 50px 0;
    line-height: 25px;
  }

  h5 {
    font-size: 15px;
  }
  .add input{
    width:auto;
    max-width: 100px;
    height: 30px;
    border-radius: 10px;
    margin: 20px 5px 20px 0;
    padding: .4rem;
    outline: var(--color-success-bg);
    font-size: 11pt;
    font-weight: bold;
    color: #424242;
  }
  .add .buttons{
    width: 30px;
    height: 30px;
    border-radius: 10px;
    margin: 20px 5px 20px 0;
    background: var(--color-success-bg);
    color: #fff;
    text-align: center;
    font-size: 14pt;
    font-weight:bolder;
    cursor: pointer;
  }
  .add .size{
    width: auto;
    height: auto;
    border-radius: 10px;
    margin: 20px 5px 20px 0;
    color: #837D7C;
    text-align: center;
    font-size: 11pt;
    padding: 2px;
    text-transform: uppercase;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid #736f75;
  }
  .add .items{
    width: auto;
    height: auto;
    margin: 25px 5px 20px 0;
    text-align: center;
    font-size: 10pt;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .add label,
  .add span {
    background: none;
    border: 1px solid #C1908B;
    color: #C1908B;
    text-align: center;
    line-height: 25px;
  }

  .add label {
    padding: 10px 30px 0 20px;
    border-radius: 50px;
    line-height: 0;
  }

.right button {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    background: var(--color-success-bg);
    color: white;
    margin-top:1rem;
    border-radius: 10px;
  }
  .shop-info-box {
    background: var(--color-success-bg);
    padding: 5px 20px;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: 'Poppins', sans-serif;
  }

  .shop-details {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .shop-details i.fa-shop {
    font-size: 10pt;
    color:white;
  }

  .shop-label {
    font-weight: 500;
    font-size: 10pt;
    color: #fff;
  }

  .shop-name {
    font-size: 10pt;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
  }

  .shop-name:hover {
    color: var(--color-success-bg);
  }

  .verified-badge {
    color:white;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
  }
.pricerating{
    margin:0 auto;
    border:2px solid var(--color-success-bg);
    width: 100%;
    height: auto;
}
.pricingtitle{
    display:flex;
    justify-content: space-between;
    width: 100%;
    color: #fff;
    background: var(--color-success-bg);
    padding: 5px;
}
.price{
   width: 100%;
   padding: .5rem;
}
.myprice{
    display: inline-flex;
}
.mp{
    font-size: 18pt;
    font-weight:900;
    color: #424242;
    font-style:oblique;
    text-decoration: solid;
    margin-right: .5rem;
}
.discount{
    text-decoration: line-through;
    color:#837D7C;
}
.itemsleft {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .5rem;
}

.items-text {
    margin: 0;
    white-space: nowrap;
}

.itemsprogressbar-wrapper {
    flex: 1;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.itemsprogressbar {
    height: 100%;
    background-color: var(--color-success-bg);
    transition: width 0.3s ease;
    border-radius: 5px 0 0 5px;
}
.descriptiontitle{
    font-size: 11pt;
    color: var(--color-success-bg);
    font-weight: bold;
    font-style: oblique;
    margin-top: 1rem;
}
.productdescription{
    margin: 0 auto;
    font-size: 10.5pt;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.features{
    margin: 0 auto;
    font-weight: bold;
    color: #424242;
}
.featureimage{
    width:100%;
    height: auto;
}
.featurestar{
    color: var(--color-success-bg);
}
.successx{
    color: var(--color-success-bg);
}
.dangerx{
    color: red;
}
.rightnavtitles{
    text-align: left;
    font-size: 11pt;
    font-style: italic;
    font-weight: bold;
    margin:.6rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid whitesmoke;
}
.subsrightnav{
    text-align: center;
    font-size: 11pt;
    font-style: italic;
    font-weight: bold;
    color: var(--color-success-bg);
}
  .geolocation{
    width: 100%;
    margin-top: 1rem;
    align-items: center;
  }
.shopmap{
    width: 100%;
    height: 200px;
    z-index: 0;
}
.mapbutton{
    margin: .5rem auto;
    background: var(--color-success-bg);
    text-decoration: none;
    width: 95%;
    max-width: 300px;
    color: #fff;
    padding: 7px;
    border-radius: 10px;
    text-align: center;
}
.mapbutton a{
    text-decoration: none;
    color: #fff;
    width: 100%;
}
/* border top for  single product right nav */
.bordertop{
    border-top:2px solid whitesmoke;
}
/* loction selects */
.clientlocation{
    width: 100%;
    padding:5px;
}
.clientlocation select{
    width: 100%;
    height:40px;
    border-radius: 10px;
    outline: #736f75;
    font-size: 10pt;
    text-align: center;
    padding: 3px;
    margin: 10px auto;
    font-weight: bold;
}

.rating-wrapper {
    font-family: Arial, sans-serif;
    display: inline-flex;
    padding: .5rem;
  }
.rating-wrapper a{
    text-decoration: none;
    color: var(--color-success-bg);
}
  .stars {
    margin-left: .3rem;
    display: inline-block;
    font-size: 14pt;
    color: #ccc;
    position: relative;
  }

  .stars::before {
    content: "★★★★★";
    letter-spacing: 3px;
  }

  .stars::after {
    content: "★★★★★";
    letter-spacing: 3px;
    color: gold;
    position: absolute;
    top: 0;
    left: 0;
    width: var(--rating-percent);
    overflow: hidden;
    white-space: nowrap;
  }

  .no-rating {
    color: #888;
    font-style: italic;
  }
  .shoprating {
    padding: 3px 10px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    text-align: left;
    /* Optional for better look */
    scrollbar-width: thin;              /* Firefox */
    scrollbar-color: #ccc transparent;  /* Firefox */
}
.best{
    color: green;
}
.average{
    color:orange;
}
.bad{
    color:red;
}
/* WebKit Browsers (Chrome, Safari, Edge) */
.shoprating::-webkit-scrollbar {
    width: 4px; /* VERY narrow */
}

.shoprating::-webkit-scrollbar-track {
    background: transparent;
}

.shoprating::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.shoprating::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.shoprating {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}
.rate h5{
    color: var(--color-success-bg);
}
.rate i{
    font-size: 10pt;
    color: orange;
}
.ratemessage {
    font-size: 12px;
    color: #424242;
    text-align: left;
}
.completeorders{
    font-size: 10pt;
}
/*  */
  @media only screen and (max-width:768px) {
    .shop-info-box{
      justify-content: center;
      margin: 0 auto;
      text-align: center;
    }
    .shoprating{
        text-align: left;
    }
    .rightnav {
    border: none;
    width: 100%;
    height: auto;
      }
      .subsrightnav{
        text-align: left;
      }
      .rightnavtitles{
        text-align: left;
      }
    .containerproduct {
      max-width: 90%;
      margin-top: 4rem;
      height: auto;
    }

    .left, .right {
      width: 100%;
      height: auto;
    }

    .containerproduct {
      flex-direction: column;
    }
  }

  @media only screen and (max-width:511px) {
    .containerproduct {
      max-width: 100%;
      height: auto;
      padding: 10px;
      margin-top: 4rem;
    }

    .left, .right {
      padding: 0;
    }
    .option {
      display: flex;
      flex-wrap: wrap;
    }
  }


    .follow-section {
        padding: 10px;
        border-radius: 12px;
    }

    .follow-button {
        background-color: var(--color-success-bg);
        color: #fff;
        border: none;
        padding: 5px 20px;
        font-weight: bold;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .follow-button:hover {
        background-color: #0056b3;
    }


    .follow {
        margin: 5px 0;
        font-size: 10pt;
    }
.shop-details a{
  text-decoration: none;
}
.shop-details a:hover{
  color: var(--color-success-bg1);
}
.shopphoto{
  margin: 1rem auto;
  width:100%;
  height: auto;
}
.chat_seller i{
  font-size: 14pt;
}
.chat_seller a{
  font-size: 10pt;
  text-decoration: none;
  color: var(--color-success-bg);
}
