body {
  margin: 0;
  padding: 0;
  margin-top: 4vh;
  margin-bottom: 7vh;
}

.back-btn {
  border: none;
  font-size: 2.8vh;
  margin-left: 7vw;
  background-color: #fff;
  font-family: "ADLaM Display", system-ui, sans-serif;
  letter-spacing: 2px;
  font-weight: 400;
  color: #1d4375;
}

/* Slider wrapper */
#upwrapIS {
  display: flex;
  justify-content: center;
}

/* Carousel container */
.carousel {
  width: 100vw;
  padding-top: 2vh;
  max-width: 500px;
  overflow: hidden;

  background-color: #fafafa;
  position: relative;
  padding-bottom: 10px;
}

/* Track */
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

/* Slides (images + video) */
.carousel-track img,
.carousel-track video {
  width: 60vw;
  padding-left: 20vw;
  max-width: 500px;
  aspect-ratio: 1 / 1; /* makes them square */
  object-fit: cover; /* crop nicely */
  flex-shrink: 0;
  border-radius: 12px;
}

/* Dots indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 8px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #333;
}

.pd-title {
  font-size: 2.7vh;
  font-family: "Arsenal", sans-serif;
  letter-spacing: 1px;
  margin-left: 3vw;
  color: #323a40;
  margin-top: 1vh;
}

.pd-specs {
  width: 65vw;
  background-color: #f5f7f8;
  padding: 3vw;
  margin-top: 1vh;
  padding-right: 15vw;
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;

  /* layout fix */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 2vh;
  font-family: "Alice", serif;
  letter-spacing: 1px;
}

.detailc-label {
  font-weight: 600;
  color: #555;
}

.detail-value {
  font-weight: 600;
  color: #2c5080;
}

.pd-price {
  display: flex;
  gap: 5vw;
  align-items: end;
  margin-left: 3vw;
  margin-top: 1vh;
}
.price-current {
  font-size: 4vh;
  font-family: "Alice", serif;
  font-weight: 600;
  color: #323a40;
  letter-spacing: 1px;
}
.price-mrp {
  font-size: 2.5vh;
  color: #454545;
  text-decoration: line-through;
  font-family: "Alice", serif;
  letter-spacing: 1px;
}
.price-discount {
  color: #d32f2f;
  font-size: 2.5vh;
  font-family: "Alice", serif;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Assurance badges */
.assurance-wrap {
  margin: 1vh 4vw;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1vh;
  border-bottom: 1px solid #454545bc;
}

.assurance-item {
  margin-top: 1vh;
  padding: 12px 8px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.assurance-item img {
  width: 3.5vh;
}

.assurance-item span {
  font-size: 0.8rem;
  color: #323a40;
  font-family: "Alice", serif;
  color: rgb(27, 123, 27);
}
.assurance-item #red {
  font-size: 0.8rem;
  color: #323a40;
  font-family: "Alice", serif;
  color: rgb(169, 34, 34);
}

/* spec */

/* Specs section */
.specs-section {
  margin-top: 3vh;
  
  padding-top: 1vh;
}
.specs-title {
  font-size: 2.8vh;
  margin-bottom: 8px;
  color: #192f49;
  font-family: "Arsenal", sans-serif;
  letter-spacing: 1px;
  margin-left: 4vw;
}

.specs-tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 4vw;
  width: 92vw;
  
}

.spec-tile {
  background: #f5f7f8;
  border: 1px solid #555;
  border-radius: 12px;
  overflow: hidden;
 
}

.spec-head {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #323a40;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Alice", serif;
  border: none;
  
}

.spec-head i {
  transition: transform 0.28s ease;
  transform-origin: 50% 50%;
}

.spec-tile.open .spec-head i {
  transform: rotate(180deg); /* arrow up */
}

.spec-body {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
  background-color: #fff;
}

.spec-tile.open .spec-body {
  padding: 10px 14px 12px;
  max-height: 480px; /* large enough for content */
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #1c20277e;
}
.spec-list li:last-child {
  border-bottom: none;
}

.spec-name {
  color: #555;
  font-family: "Alice", serif;
}
.spec-value {
  color: #2c5080;
  font-family: "Alice", serif;
}

/* test */
/* ---------- See More Button ---------- */
.see-more-btn {
  display: none;
  margin: 12px auto 0;
  padding: 1vh 6vw;
  background-color: #1d4375; /* dark button background */
  color: #e2e3e2; /* light text color */
  font-family: "Alice", serif;
  font-weight: 300;
  letter-spacing: 1px;
  border: none;
  border-radius: 12px;
  box-shadow: 2px 4px 6px #00000070;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2vh;
}

.see-more-btn:hover {
  background-color: #1d4375; /* slightly lighter on hover */
  transform: scale(1.05);
}
/* ---------- Section-wide Gradient Overlay ---------- */
.specs-section {
  position: relative;
  overflow: hidden;

 
}

/* dark gradient over the entire section when collapsed */
.specs-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
 
  opacity: 0;
 
  pointer-events: none; /* allows clicks to pass through */
  border-radius: inherit;
}

/* when collapsed — show overlay */
.specs-section.collapsed::after {
  opacity: 1;
}

.delivery-text {
  display: flex;
  gap: 5vw;
  margin-top: 1.7vh;
  align-items: end;
  font-size: 2.1vh;
  color: #323a40;
  font-family: "Alice", serif;
}
.delivery-text img {
  width: 3.5vh;
  
   
  
}

.delivery-icon h2 {
  color: #192f49;
  font-family: "Arsenal", sans-serif;
  font-size: 2.6vh;
  letter-spacing: 1px;
  
}

.delivery-section{
margin: 1vh 4vw;
  padding-bottom: 2vh;
  border-bottom: 1px solid #454545bc;
}
.payment{
  margin: 0.5vh 4vw;
  border-top: 1px solid #454545;
  
}
.payment img{
  width: 92vw;
}
 
.payment h2{
  margin-top: 5px;
  color: #192f49;
  font-family: "Arsenal", 
  sans-serif;
  font-size: 2.6vh;
  letter-spacing: 1px;
}


/* cards */

/* card slider  */

#CardWrapperRefurb{
margin-top: 4vh;
}

.mobileRating {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
}

/* wrapper that holds both layers */
.mobileRating .star-wrapper {
  position: relative;
  display: inline-block;
  font-size: 1.3vh; /* keep your preferred sizing */
  line-height: 1;
}

/* background (empty) stars */
.mobileRating .stars-empty {
  color: #ddd;
  display: block;
  white-space: nowrap;
}

/* filled stars overlay; width will be controlled by JS */
.mobileRating .stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  width: 0;               /* default, JS will set to e.g. 84% */
  color: #f5c518;         /* golden filled color */
  pointer-events: none;
}

/* keep star spacing same in both layers */
.mobileRating .stars-empty i,
.mobileRating .stars-filled i {
  margin-right: 2px;
  font-size: inherit;
}

/* number styling (you already had this) */
.rating-number {
  font-size: 1.6vh;
  color: #192f49c5;
  margin-left: 5px;
   font-family: "Alice", serif;
}


#CardWrapper{
  background-color: #f5f7f8;
  width: 100vw;
  /* margin-left: 2vw; */
  margin-top: 1vh;
  
}

.sectionHeading{
  background-color: #f5f7f8;
  display: flex;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 7px;
  
}

#cardHeading{
 font-family: "Alice", serif;
  color: #192f49;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-left: 2vw;
 
}

.viewAllLink{
 margin-left: auto;
 text-decoration: none;
 margin-right: 5vw;
 color: #192f49;
  font-family: "Alice", serif;
  border-bottom: 1.5px solid #192f49;
}

.CardSection {
  background: #f5f7f8;
  height: auto;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 5vw;
  padding: 1rem;
  scroll-padding: 3vw;
  -webkit-overflow-scrolling: touch;
   scrollbar-gutter: stable both-edges;
}

.CardSection::-webkit-scrollbar {
  display: none;
}

.MobileCard {
  border-radius: 14px;
  background: #f5f7f8;
  box-shadow: 3px 3px 3px #d0d2d3, -3px -3px 3px #ffffff;
  padding: 0.6rem;
  scroll-snap-align: start;
  position: relative;
  text-decoration: none;
  width: calc(80vw/2 );
  flex-shrink: 0;
  display: block; 
}


.cardLogo {
  position: absolute;
  left: 0px;
  top: 2px;
  height: 0.7rem;
  font-size: 2.5vw;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

#card-name {
  color: #323a40;
  font-size: 2.1vh;
  font-family: 'Arsenal', sans-serif;
  font-weight:bold;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; 
  line-clamp: 2; 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2em;
  max-height: 2.4em;
}
#card-discout{
  display: flex;
  gap: 18px;
  align-items: center;
 margin-top: 0.7vh;
 margin-bottom: 0.5vh;
}


.finalPriceWrap {
  position: relative;
  display: inline-block;
  
}

#ribbon-wrap{
filter: drop-shadow(2px 2px 0.7px #192f4965);
}

.finalPrice {
  position: relative;
  left: -1rem;
  color: #f5f7f8;
  width:75% ;
  background-color: #192f49;
  padding: 0.2rem 0.8rem;
   font-family: "Alice", serif;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 5vw;
  font-weight: bold;
  padding-left: 18px;
  z-index: 1;
  letter-spacing: 2px;
}

.cornerRibbonLeft {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px; /* half corner */
  border-color: transparent transparent #192f49d3 transparent;
  position: relative;
  bottom: 0;
  left: -1rem;
  z-index: 2;
  transform: rotate(-90deg);
}



.mobilecCondition {
  font-size: 3vw;
  color: #454545;
  margin-top: 0.5vh;
 font-family: "Alice", serif;
}

.mobileDiscount {
  text-align: center;
  font-size: 4.5vw;
  color: #d32f2f;
  font-weight: bold;
   font-family: "Alice", serif;
}

.mobileMRP{
  text-decoration: line-through;
  color: #454545ca;
  font-size: 4.5vw;
   font-family: "Alice", serif;
   letter-spacing: 1px;
}

/* Main image */
.mobileImage {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.buy-form{
  background-color: #f5f7f8;
  position: fixed;
  bottom: 0;
  width: 100vw;
  height: 7vh;
  display: flex;
  z-index: 41;
  align-items: center;
  
}
.buy-form i{
  margin-right: 4vw;
}
#sub{
 background-color: #1d4375 ;
 color: #fff;
 padding: 1.5vh 0;
 font-size: 2vh;
 border-radius: 12px;
 border: none;
  font-family: "Alice", serif;
  width: 45vw;
  margin-left: 2vw;
}

#add{
 background-color: transparent;
 border: 1px solid #1d4375;
 color: #1d4375;
 padding: 1.5vh 0;
 font-size: 2vh;
 border-radius: 12px;
 width: 45vw;
  font-family: "Alice", serif;
  margin-left: 3vw;
  margin-right: 2vw;
}

