/* General Styling for the Fit Finder Container */
.fit-finder {
  width: 100%;  
  margin-top: 2.5rem;
}

.fit-finder h3{
  font-size:22px;
}

.fit-finder-shop-button{
    font-weight: 500;
    font-size:14px;
    background: transparent;
    border: 1px solid #000;
    padding: 8px 50px;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 20px;
}

.fit-finder-shop-button:hover{    
    background: #000;
    color:#FFF;
    border: 1px solid #FFF;
    
}


.category-description{
  margin:2.5rem 0;
  text-align: center;
}

.fit-finder-separator{
  display:flex;
  width:100%;
  height:30px;
  margin:2rem 0;
  
}

.fit-finder-separator-left,.fit-finder-separator-right{
  width:50%;
  border-color:#b7b7b7;
  border-style:solid;
  border-bottom:none;
  border-top-width: 1px;

 
}

.fit-finder-separator-left{
  border-top-right-radius:30px;
   
   border-right-width: 1px;
   border-left:none;
   margin-right:-0.5px;
}


.fit-finder-separator-right{
  border-top-left-radius:30px;
  margin-left:-0.5px;
  border-left-width: 1px;
   border-right:none;
}

/* Target the default Swiper button */
.swiper-button-next,
.swiper-button-prev {
  color: #000; /* Optional: change the color */
  width:inherit;
  height:inherit;
}

.swiper-button-prev.swiper-button-disabled, .swiper-button-next.swiper-button-disabled{
  opacity:0;
}

/* Hide the default SVG arrow */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

/* Add your custom icon */
.swiper-button-next::before,
.swiper-button-prev::before {
  font-family: 'themify'; /* Use the correct font-family */
  font-size: 18px; /* Adjust size as needed */
  font-weight: bold;
  color:#FFF;
  background-color:rgba(0,0,0,0.3);
  padding:10px;
  border-radius:50%;
  height:40px;
  width:40px;
  display:flex;
  justify-content:center;
  align-items: center;
}

.swiper-button-prev::before {
  content: '\e64a'; /* Themify code for ti-angle-left */
}

.swiper-button-next::before {
  content: '\e649'; /* Themify code for ti-angle-right */
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.2); /* Light gray border */
  border-top-color: #0E1311;            /* Main spinner color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto; /* optional: center it */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Container for each vertical step */



.selection-step{
  margin-bottom: 2.5rem;  
}
.selection-step:has(.swiper) {
  margin-bottom: calc(2.5rem - 10px);  
}

.first-step.selection-step, .firt-step.selection-step:has(.swiper) {
margin-bottom: 2.5rem;  
}

.fit-finder-title {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align:center;
}

/* Swiper and Category Styling */
.category-swiper {  
}

.category-slide {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;  
  position:relative;
    /* transition: all 0.2s ease-in-out; */  
}

.category-slide{
  flex: 0 0 calc((100% - 3 * 10px) / 4); /* if spaceBetween = 20 */
  max-width: calc((100% - 3 * 10px) / 4);
}

.first-step .category-slide{
  flex: 0 0 calc((100% - 3 * 10px) / 3); /* if spaceBetween = 20 */
  max-width: calc((100% - 3 * 10px) / 3);
}

.category-slide:hover {
  transform: scale(1.05);
  /* border-color: #ddd; */
}

/* NEW: Style for the selected category */
.category-slide.selected {
  /* border-color: #000; */
  /* transform: scale(1); */
}

.category-slide.selected::after{
  content: "";
  position: absolute;
  bottom: 0px; /* distance below box */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #f0f0f0; /* same as background color */
}


.first-step .category-slide.selected::after{
  display:none;
}

.category-name, .category-image-container {
  width: 100%;  
  background-color: #f0f0f0;
  overflow: hidden;  
  text-align:center;
  
}

.category-name{
  padding:0.5rem 0;
  margin-bottom:10px
}



.category-image-container img {
    width: 100%;
    height: 100%;
      object-fit: cover;
}

.selection-step.first-step .category-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}


.selection-step .category-image-container img {
      width: 100%;
    height: 100%;
}


.first-step .category-name{
  background-color:transparent;
  position:absolute;
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  color: white;
      font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}
.category-name {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  line-height:2rem;

  
}

/* Cup Selector Styling */
.cup-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.cup-option {
  border: 1px solid #8c8c8c;
  background-color: #fff;
  color: #333;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  text-transform:uppercase;
  /* transition: all 0.2s ease-in-out; */
}

.cup-option.long-text{
  font-size:0.75rem;
}

.cup-option:hover {
  border-color: #000;
  transform: scale(1.05);
}

.cup-option.selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Results & Utility Styling */
.results-container {
  padding: 20px;
  margin-top: 1rem;
  text-align: left;
  border: 1px solid #ddd;
  
  background-color: #fafafa;
}

.results-container h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.results-output {
  background-color: #f0f0f0;

  padding: 15px;
  
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
}

.reset-button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.loader, .error-message {
  padding: 40px;
  font-size: 1.2rem;
  color: #666;
}

.loader{
  text-align: center;
}

.loader .spinner{
  margin-top:15px;
}

.error-message button {
  margin-left: 10px;
  padding: 5px 10px;
}

.fit-finder .romantic-copy{
  font-size:15px;
}


.fit-finder-specs{
  display:flex;
  flex-direction: column;
  gap:25px;
}
.fit-level{
  display:flex;
}

.fit-feature-label, .fit-level-label{
  font-weight:600;
  font-size:16px;
  width:200px;  
  text-transform: uppercase;
}

.fit-level-1,.fit-level-2,.fit-level-3 {
display:inline-block;
height:20px;
width:75px;
border:1px solid #F2F2F2;
border-right:none;
}

.fit-level-1 {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.fit-level-bars .fit-level-filled{
  background-color:#000;
  border-top-color: #000;
  border-bottom-color: #000;
}

.fit-level-3{
  border-right:1px solid #F2F2F2;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}


.fit-features{
  display: flex;
}


.fit-finder-specs{
  margin-bottom:35px;

}

.fit-features .fit-feature-selected{
  background-color:#000;
  color:#FFF;
  
}

.fit-feature-yes{
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.fit-feature-no{
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.fit-feature-yes, .fit-feature-no {

  display:inline-block;
  padding:5px 10px;
  background-color:#F2F2F2;
  color: #000;

}

.swiper-slide {
  opacity: 1;
  transition: opacity 0.2s ease;
  transition: transform 0.3s ease;

}

.swiper-wrapper{
  margin-bottom:10px;
}

/* If a selected slide exists, dim the others */
.swiper-wrapper:has(.swiper-slide.selected) .swiper-slide {
  opacity: 0.3;
}

/* But keep the selected slide fully visible */
.swiper-wrapper:has(.swiper-slide.selected) .swiper-slide.selected {
  opacity: 1;
}


/* On hover: make any hovered slide fully visible */
.swiper-slide:hover {
  opacity: 1 !important;
  /* transform: scale(1.02); */
}

.swiper-wrapper:has(.swiper-slide:hover):has(.swiper-slide.selected) 
.swiper-slide.selected {
  /* transform: scale(1); */
}

/* But keep scale(1.1) if the hovered slide is also the selected one */
.swiper-slide.selected:hover {
  /* transform: scale(1.02)!important; */
}

@media (max-width: 767.98px) {
 .fit-feature-label, .fit-level-label{
  width:150px;
  
 }

 .fit-level-1,.fit-level-2,.fit-level-3 {
  width:50px;
 }

 .category-slide{
  flex: 0 0 calc((100% - 3 * 10px) / 2.2); /* if spaceBetween = 20 */
  max-width: calc((100% - 3 * 10px) / 2.2);
}


.first-step .category-slide{
  flex: 0 0 calc((100% - 3 * 10px) / 1.3); /* if spaceBetween = 20 */
  max-width: calc((100% - 3 * 10px) / 1.3);
}

}

@media (min-width: 767.99px) and (max-width: 991.98px) {
  
  
 .category-slide{
  flex: 0 0 calc((100% - 3 * 10px) / 3.2); /* if spaceBetween = 20 */
  max-width: calc((100% - 3 * 10px) / 3.2);
}

.first-step .category-slide{
  flex: 0 0 calc((100% - 3 * 10px) / 2.2); /* if spaceBetween = 20 */
  max-width: calc((100% - 3 * 10px) / 2.2);
}


}