.color-section{
    height: auto;
    display: none;
}

.color-section .container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 50px 0 0 0;
    gap: 30px;
    margin-top: -45px;
}

.color-section .container .color-main-title-container{
    width: calc(100% - 150px);

}

.color-section .container .color-main-title-container h1{
    text-align: start;
    width: 70%;
    font-weight: 590;
    font-style: semibold;
    font-size: 40px;
    line-height: 47px;
    letter-spacing: 0px;
    background: linear-gradient(90deg,
    #FF0000,
    #FFD900,
    #62FF01,
    #00FFFF,
    #746F92,
    #FF01D0,
    #FF0004
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.color-section .container .color-main-title-container h1 span {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: black;
}

.color-categories-container{
    width: 100%;
    display: flex;
    justify-content: center;
}

.color-tabs {
    display: flex;
    list-style-type: none;
    padding: 5px;
    margin: 0;
    background-color: rgba(118, 118, 128, 0.12);
    border-radius: 34px;
    width: 300px;
    margin: 0 auto;
}
.color-tabs-category{
    display: flex;
    list-style-type: none;
    padding: 5px;
    margin: 0;
    background-color: rgba(118, 118, 128, 0.12);
    border-radius: 34px;
    width: 50%;
    margin: 0 auto;
}

.color-tabs-category .color-active {
    background-color: #FFFFFF; 
    color: #000000; 
}
.categorypanel {
    font-weight: 590;
    font-size: 14px;
    color: #000000; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-style: semibold;
    line-height: 18px;
    letter-spacing: -0.08px;
    padding: 2px 10px;
    border-radius: 34px;
    text-align: center;
}

.color-tabs .color-active {
    background-color: #FFFFFF; 
    color: #000000; 
}

.colorpanel:hover {
    background-color: #FFFFFF; 
    color: #000000;
}

.color-main-container{
    width: calc(100% - 40px);
    border-radius: 34px;
    background-color: #FFFFFF; 
    box-shadow: 0 20px 76px rgba(0, 0, 0, 0.2); 
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.color-main-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid black;
    border-right: 3px solid black;
    border-radius: 0 0 34px 0;
    bottom: 6px;   
    right: 6px;    
    box-sizing: border-box;
    pointer-events: none;
}

.main-selection-color-container{
    width: 100%;
    display: flex;
    overflow: hidden;
}
.image-color-container {
    width: 60%;              
    position: relative;    
    aspect-ratio: 4 / 3;     
}

.image-color-container img {
    width: 100%;              
    height: 100%;             
    object-fit: cover;        
    border-radius: 34px;
}


.selection-container{
    width: 40%;
    position: relative;
}

.sub-selection-color-container{
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.image-sub-container {
    width: 30%;                
    aspect-ratio: 4 / 3;       
    position: relative;       
    flex-wrap: wrap;
}

.image-sub-container img {
    width: 100%;               
    height: 100%;              
    object-fit: cover;     
    border-radius: 35px;
}

.carousel-selection-container{
  position: relative;
  width: 100%;
  height: 150px; 
  overflow: visible; 
}

.carousel-selection-item {
  position: absolute;
  width: 250px;
  aspect-ratio: 3 / 4; 
  transition: transform 0.5s ease-in-out, z-index 0s, box-shadow 0.3s;
  overflow: hidden;
  top: 20px;           
  left: -50px;     
  padding: 8px;
  background: rgba(106, 102, 102, 0.38);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.9px);
  -webkit-backdrop-filter: blur(6.9px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
}

.carousel-palette-name .dashed-box{
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 4px;
    border: 2px dashed #000000;
    box-sizing: border-box;
    font-weight: 590;
    line-height: 13px;
    letter-spacing: 0px;
    margin-right: 10px;
}

.color-palette-container {
  width: 100%;              
  aspect-ratio: 16 / 15;     
  border-radius: 12px;        
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;          
}

.carousel-palette-name{
    width: 80%;  
    aspect-ratio: 5 / 2;  
    background: rgba(219, 210, 210, 0.67);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.9px);
    -webkit-backdrop-filter: blur(10.9px);
    border: 1px solid rgba(219, 210, 210, 0.3);
    padding: 20px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.carousel-palette-name h1{
    font-weight: 400;
    font-style: regular;
    font-size: 17px;
    line-height: 22px;
    letter-spacing: -0.43px;
    color: #000000;
    
}
.color-palette-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
}

.carousel-selection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.selection-container .prev-overlay,
.selection-container .next-overlay{
    z-index: 99;
}

.selection-container .next-overlay{
    top: calc(100% + 20px);
    right: 50px;
}

.selection-container .prev-overlay{
    top: calc(100% + 20px);
    left: -50px;
}


.carousel-palette-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 15px; 
}

.carousel-palette-dots .dot.active {
  background: rgba(0,0,0,0.8);
}

.carousel-palette-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
}

.carousel-palette-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.carousel-palette-dots .dot.more {
    width: 5px;
    height: 5px;
    background: rgba(0,0,0,0.15);
    cursor: default;
}

.image-color-overlay{
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 30px;
}

.image-color-overlay .color-title{
    font-weight: 700;
    font-style: bold;
    font-size: 20px;
    line-height: 16px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #FFFFFF;
    max-width: fit-content;

}
.image-color-overlay .color-description,
.image-color-overlay .color-sub-title{
    font-weight: 700;
    font-style: bold;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0px;
    color: #FFFFFF;
}

.color-section hr {
    border: none;
    border-bottom: 2px solid rgba(60, 60, 67, 0.1);
    width: 100%;
}

.color-section .inspiration-text{
    width: 100%;
    display: flex;
    justify-content: center;
    font-weight: 510;
    font-size: 17px;
    font-style: medium;
    line-height: 20px;
    letter-spacing: -0.43px;
    color: rgba(60, 60, 67, 0.3);
}

.carousel-color-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; 
}

.selection-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.selection-bottom p{
  font-weight: 510;
  font-style: medium;
  font-size: 17px;
  line-height: 20px;
  letter-spacing: -0.43px;
  color: rgba(60, 60, 67, 0.3);
}

.discover-button-container {
  width: 100%;               
  display: flex;
  justify-content: center;   
}

.selection-bottom .discover {
  all: unset;          
  cursor: pointer;     
  display: inline-block;
  text-align: center;
  padding: 15px 20px;

  background-color: #0088FF;
  font-weight: 500;          
  border-radius: 100px;

  font-size: 17px;
  line-height: 100%;
  letter-spacing: 0px;
  color: #FFFFFF;
  width: 50%;
  text-decoration: none;
}
.back-button{
    width: 100%;
    padding: 0 3%;
}

.back-button a button {
  width: 8em;
  height: 2.5em;
  border-radius: 30em;
  font-size: 15px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #f5f5f5;
  box-shadow: 3px 3px 6px rgba(0,0,0,0.1),
              -3px -3px 6px rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.back-button a button::before {
  content: '';
  width: 0;
  height: 100%;
  border-radius: 30em;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right, #e0e0e0, #fafafa);
  transition: width 0.4s ease;
  z-index: -1;
}

.back-button a button:hover::before {
  width: 100%;
}

.back-button a button:hover {
  box-shadow: 2px 2px 5px rgba(0,0,0,0.15),
              -2px -2px 5px rgba(255,255,255,0.6);
}
.back-button button i {
  font-size: 15px;   
  vertical-align: middle;
  margin-right: 3px; 
}

.carousel-palette-dots{
    margin: 10px 0;
}
.selection-bottom{
    gap: 10px;
}
.selection-bottom .discover{
    padding: 10px 20px;
}
.selection-bottom p{
    font-size: 13px;
    line-height: 15px;
}