
.detail {
  display: flex;
  flex-direction: column;
  justify-content:space-between;
  height: 4rem;
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
}

.title-price {
  text-align: center;
  margin-top: 15px;
}

.price, .title {
  margin: 0;
}

.buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-evenly;
  width: 22rem;
  margin-left: auto;
  margin-right: auto;
  /* background-color: aqua; */
}

button {
  text-align: center;
  justify-content: center;
  width: 150px;
  height: 40px;
  color: white;
  border: solid 0.5px white;
  font-size: 1.2em;
  font-weight: 600;
  border-radius: 12px;
  font-style: unset;
  background-color: transparent;
  cursor: pointer;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes regEase {
  0% {
    transform: scale(1);
    /* margin-left: 0.6rem; */
    /* margin-right: 0.6rem; */
  }
  100% {
    transform: scale(1.2);
    /* margin-left: 0.4rem; */
    /* margin-right: 0.4rem; */
  }
}

a.active:not(.nav-link) {
  /* transform: scale(1.2); */
  animation: regEase 0.4s ease-in-out forwards;
}

/* Keep hover feedback visible even when auto-rotate marks an item as active. */
a.small-product:hover,
a.small-product:focus-visible {
  transform: translateY(-2px) scale(1);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2));
}

a.active.small-product:hover,
a.active.small-product:focus-visible {
  animation: none;
  transform: translateY(-2px) scale(1);
}

a.small-product:hover img,
a.small-product:focus-visible img {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
}



/* Popup css here */

.popup {
  display: none;
  position: absolute;
  width: 30rem;
  height: 45rem;
  max-width: 530px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%; 
  transform: translate(-50%, -50%); 
  margin-left: 0;
  z-index: 2; 
  background: red;
  border-radius: 25px;
}

.popup button {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 13px 18px;
  width: auto;
  top: -3.5rem;
  left: 0rem;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .05rem;
  z-index: 3;
  background-color: rgba(56, 13, 143, 0.4);
  /* text-shadow: 1px 1px 20px #000f70; */
}

.popup button[class^="popup-back-"] {
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.popup button img {
  width: 1.8rem;
  height: 1.2rem;
  margin-right: 1rem;
}

.large-product {
  position: absolute;
  left: 100%;       
  bottom: -5%;
  transform: translateY(0%) translateX(-55%);
  width: 180px;
  height: auto;
  z-index: 2;

  animation: slideIn 0.8s ease-out forwards; 

}

@keyframes slideIn {
  0% {
    left: 85%; 
    opacity: 0; 
  }
  100% {
    left: 100%; 
    opacity: 1; 
  }
}

.large-product-mask {
  position: relative;
  overflow: hidden; 
  width: 180px; 
  height: auto; 
  display: flex;
  justify-content: center;
  align-items: center;
}


.popup-content {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 3rem 2rem 4.2rem 3rem;

  flex-direction: column;
  justify-content: flex-start; 
  align-items: flex-start; 

  border-radius: 25px;
  background-color: white;
}

.popup-title-row {
  display: block;
  width: 100%;
}

.popup .popup-nav-arrow,
.popup .popup-title-arrow,
.popup .popup-dot {
  position: static;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: auto;
}

.popup .popup-nav-arrow .popup-arrow-icon,
.popup .popup-title-arrow .popup-arrow-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.popup .popup-nav-arrow {
  position: absolute;
  top: 12%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 5rem;
  line-height: 1;
  font-weight: 300;
  background-color: transparent;
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  z-index: 5;
}

.popup .popup-nav-arrow .popup-arrow-icon {
  width: 42px;
  height: 42px;
  background-image: url('/public/images/elements/nav-arrow-white.png');
}

.popup .popup-nav-arrow-prev {
  left: -72px;
}

.popup .popup-nav-arrow-next {
  right: -72px;
}

.popup .popup-nav-arrow-next .popup-arrow-icon,
.popup .popup-title-arrow-next .popup-arrow-icon {
  transform: scaleX(-1);
}

.popup .popup-title-arrow {
  display: none;
}

.popup-dots {
  position: absolute;
  left: 3rem;
  right: 2rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.popup .popup-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup .popup-dot.active {
  background-color: #000000;
  transform: scale(1.15);
}


h2.product-name {
  margin: 0;
  color: black;
  text-align: left;
  font-size: 2.1rem;
  line-height: 2.7rem;
}

a.buy-button {
  display: inline-block;
  text-decoration: none;
  color: white;
  background-color: #000000;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: bold;
  margin: 25px 0 15px 0;         
  align-self: flex-start;  
}

@keyframes moveUp {
  0% {
    opacity: 0;
    transform: scaleY(1.25) translateY(4rem); 
    /* line-height: 3rem; */
  }
 
  100% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
    /* line-height: 1.9rem; */

  }
}

div.popup p {
  opacity: 0;
  margin: 10px 0;     
  width: 80%;
  height: 23rem;
  color: black;
  overflow: auto;   
  box-sizing: border-box;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: rem;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* Internet Explorer and old Edge */
  animation: moveUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.div.popup p::-webkit-scrollbar {  /* Chrome, Safari, newer Edge */
  display: none;
}


.spfs {
  margin: 10px 0; 
  display: flex;
  width: 100%;
  /* background-color: rgba(0, 255, 255, 0.366); */
}

.spf {
  width: 60px;
  height: 60px;
  background-color: rgb(255, 133, 20);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  line-height: 1.1rem;
}

.spf h5 {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  
.popup {
  width: calc(100% - 2rem);
  max-width: none;
  height: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-left: 0;
}

.large-product {
  width: 140px;

position: absolute;
  left: 100%;       
  bottom: -5%;
  transform: translateY(-15%) translateX(-115%);
  width: 32%;
  height: auto;
  z-index: 2;

  animation: slideIn 0.8s ease-out forwards; 




}

.popup-content {
  padding: 2rem 2rem 2rem 2rem;
}

.popup-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  width: calc(100% + 3rem);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  /* background-color: red; */
}

h2.product-name {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  line-height: clamp(1.6rem, 4.8vw, 2.1rem);
  max-width: 100%;
  text-overflow: clip;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.popup .popup-nav-arrow {
  display: none;
}

.popup .popup-title-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #00000059;
  font-size: 2.1em;
  line-height: 1;
  /* background-color: rgba(0, 0, 0, 0.08); */
}

.popup .popup-title-arrow .popup-arrow-icon {
  width: 18px;
  height: 18px;
  background-image: url('/public/images/elements/nav-arrow-gray.png');
}

.popup-dots {
  left: 2rem;
  right: 2rem;
  justify-content: center;
  bottom: 0.9rem;
}

div.popup p {
  font-size: 0.9rem;
  line-height: 1.4rem;
  width: 60%;
  
  

  margin: 10px 0;     
  height: 23rem;

}

}