/* /styles/quiz.css aa */

/* Base styles */
body {
  margin: 0;
  font-family: Quicksand, sans-serif;
  background-color: #ECD8C5;
  background-image: url("/public/images/tropical-water.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #3f3d3b;
}

body.intro-active {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

label {
  cursor: pointer;
}


.intro-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  max-height: 78vh;
  font-weight: 300;
  margin-top: 7vh;
  margin-bottom: 70vh;
  border-radius: 2em;
  padding: 0; /* Remove padding */
  margin-right: 2em;
  margin-left: 2em;
  background-color: #edd3b99b;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.image-container {
  flex: 1 1 33%; /* Take up 1/3 of the container */
  width: 100%; /* Define a width or make sure it inherits from its parent */
  max-height: 78vh; /* Set a height or inherit */
  height: 78vh;
  position: relative; /* Ensures child absolutely fills this area */
  overflow: hidden; /* Clips any overflow from the child image */
}

.intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2em 0 0 2em;
  position: absolute; /* Ensures it fills the parent container fully */
  top: 0;
  left: 0;
  transform: scaleX(-1);
}

.text-container {
  flex: 1 1 90%; /* Take up 2/3 of the container */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1em;
  line-height: 2.3em;
  font-size: 14px;
}

.intro-container h1 {
  font-size: 2.5em;
  font-weight: 300; /* Balanced weight for elegance */
  width: 80%; /* Adjust width for responsiveness */
  border-radius: 6px;
  padding: 10px;
  font-family: 'Merriweather', serif; /* Timeless serif font */
}

.intro-container p {
  font-size: 1.4em;
  margin: 0px 0 32px 0;
  width: 60%; /* Adjust width for responsiveness */
  border-radius: 6px;
  padding: 10px;
  font-family: 'Merriweather', sans-serif; /* Modern and elegant sans-serif */
  font-weight: 100; /* Light weight for a refined appearance */
}

@media (max-width: 900px) {
  .intro-container {
    flex-direction: column;
    align-items: center;
  }

  .image-container {
    width: 100%;
    height: 50vh; /* Set a specific height to ensure it doesn’t collapse */
  }

  .intro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1; /* Ensure it’s behind the text container */
  }

  .text-container {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
    background-color: rgba(237, 211, 185, 0.8);
    padding: 1em;
    border-radius: 1em;
  }
}

@media (max-width: 600px) {
  .intro-container {
    flex-direction: column;
    height: 70vh;
    max-height: 70vh;
  }

  .intro-container > * {
    font-size: 12px;
  }

  .image-container {
    width: 100%; /* Image takes up the full width */
    order: 1; /* Ensure image is below the text */
  }

  .intro-image {
    width: 100%; 
    height: 100%; 
    border-radius: 0 0 2em 2em; /* Adjust the radius for the bottom */
  }

  .text-container {
    width: 70%;
    padding: 1em;
  }

  .intro-container p {
    width: 80%
  }

  #startBtn, #backBtn {
    font-size: 14px;
  }
}

.quiz-button-wrapper {
  gap: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  background-color: #edd3b9;
  padding: .6rem 1.3rem;
  border-radius: 24px;
  text-decoration: none;
  font-size: 18px;
  font-family: Quicksand, sans-serif;
  font-weight: 300;
  transition: all 0.5s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: #f0dac5;
}

#startBtn, #backBtn {
  transition: all 0.6s ease;
  background-color: #eee7e171;
}

#startBtn:hover, #backBtn:hover {
  background-color: #fffdfa80;
}

/*#startBtn:hover {
  transform: scale(1.02);
}*/

/*#backBtn:hover {
  transform: scale(1.005);
}*/

.cta-arrow {
  margin-left: 3px;
  transition: transform 0.3s ease-in-out;
  display: inline-block;
}

#startBtn:hover .cta-arrow {
  transform: translateX(5px);
}

.backBtn:hover .cta-arrow {
  transform: translateX(-5px) !important;
}



/* Quiz Container */
.quiz-container {
  display: flex;
  flex-direction: column;
  height: 85vh;
  background-color: #f1e2d2;
  background-color: #f1e2d2a8;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 90%;
  text-align: center;
  margin: 20px auto;
}

.title {
  flex: 0 0 auto;
}

.title h1 {
  font-weight: 400;
}

.title {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title h1 {
  font-weight: 400;
  margin: 0;
  margin-bottom: 10px;
}

.title p {
  margin: 0;
}

.progress-bar {
  background-color: #fffaf4;
  overflow: hidden;
  height: 8px;
  width: 100%;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  margin-bottom: 6px;
  margin-top: .2px;
}

.progress {
  background-color: #9f714f;
  height: 100%;
  width: 0%; /* Start empty */
  transition: width 0.4s ease;
}

.question-counter {
  margin-top: 10px;
}

.quiz-content-container {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0;
  height: 85vh;
}

.quiz-content {
  position: relative;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%; /* Adjust the size of the image as needed */
  transition: opacity 0.2s ease; /* Smooth fade-out effect */
  background-image: none !important;
  opacity: 1;
}

.quiz-content.fade-out {
  opacity: 0;
}

.question-image {
  width: 80px; /* Adjust the size as needed */
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px; /* Space between image and question text */
}

/* Sticky header (question text) */
/*.quiz-content h2 {
  font-weight: 200;
   font-size: 1.5em;
  position: relative; 
  padding: 15px;
  z-index: 10;
  margin: 20px 40px 0px 40px;
  font-family: 'Merriweather', serif;
  background: #fffaf4c5;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.01);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question-subtext {
  padding: 20px 40px;
  margin: 10px 40px 20px 40px;
  background: #fffaf4c5;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-family: 'Merriweather', serif;
  font-weight: 200;
  text-align: center;
} */

/* New styles for question-header */
.question-header {
  background: #fffaf4c5;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin: 20px 40px;
  padding: 15px;
  font-family: 'Merriweather', serif;
  font-weight: 200;
  text-align: center;
  position: sticky;
}

.question-header .question-subtext {
  margin-top: 10px;
  font-weight: 200;
  padding: 0 30px;
}

/* Remove individual backgrounds and margins from h2 and question-subtext */
.quiz-content h2 {
  font-weight: 200;
  font-size: 1.5em;
  position: relative;
  z-index: 10;
  margin: 0;
  font-family: 'Merriweather', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question-subtext {
  margin: 20px 0 0 0;
  padding: 0 50px;
  font-family: 'Merriweather', serif;
  font-weight: 200;
  text-align: center;
  font-size: 14px;
}


@media (max-width: 600px) {
  .question-image {
    width: 60px;
    height: 60px;
  }

  .quiz-content h2 {
    font-size: 1.2em;
  }

  .question-header {
    margin: 20px 30px;
  }

  .quiz-container {
    height: 75vh;
  }
}


/* Update the styles for quiz-question-container */
.quiz-question-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto; /* Center the container */
  padding: 30px 20px;
}
/* Additional styling for responsiveness */
@media (max-width: 800px) {
  .quiz-question-container {
    padding: 15px;
  }

  .quiz-content {
    background-size: auto 60%; /* Adjust for smaller screens */
  }
}


.options-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 16px;
  justify-content: center; /* Center the grid items */
  padding: 0 40px; /* Add padding on the left and right */
}

/* Option styles */
.option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5vh 1vw;
  background-color: #fffaf4;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  z-index: 1;
  width: 100%; /* Ensure the option fills the grid cell */
  box-sizing: border-box;
  margin: 0;

}

.option:hover {
  box-shadow: 0 2px 10px rgba(55, 52, 49, 0.15);
  background-color: rgb(247, 241, 241);
  z-index: 1;
}

.parallax-image-1{
  background-image: url("/public/images/tropical-water.webp");
}

/* Hide default appearance for inputs */
.option input[type="radio"],
.option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid #9f714f;
  width: 20px;
  height: 20px;
  position: relative;
  margin-right: 15px;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
}

/* Radio button styles */
.option input[type="radio"] {
  border-radius: 50%;
}

.option input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: #9f714f;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  /* Add the animation */
  animation: radio-check 0.3s ease forwards;
}

@keyframes radio-check {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Checkbox styles */
.option input[type="checkbox"] {
  border-radius: 4px;
}

.option input[type="checkbox"]:checked {
  background-color: #9f714f;
  border-color: #9f714f;
}

.option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
  /* Add the animation */
  animation: checkbox-check 0.3s ease forwards;
}

@keyframes checkbox-check {
  0% {
    transform: translate(-50%, -50%) scale(0.6) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(45deg);
    opacity: 1;
  }
}

/* Option text */
.option .option-text {
  font-size: 16px;
  font-weight: 300;
  text-align: left;
  word-wrap: break-word;
  font-family:'Merriweather', sans-serif;
}

/* Additional styles */
.option input:checked + .option-text {
  font-weight: 300;
  color: #9f714f;
}

.prev-btn {
  margin-right: auto;
}

.next-btn {
  margin-left: auto;
}

/* Tooltip container */
.tooltip-container {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip-text {
  visibility: hidden;
  width: 100px;
  background-color: #9f714f; /* Updated to match highlight color */
  background-color: #9f704fd0;
  color: #fffaf4; /* Light color for text */
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 130%; /* Position directly above the button */
  left: 50%;
  transform: translateX(-50%) translateY(-10px); /* Adjusted transform */
  opacity: 0;
  font-size: 14px;
  font-family: Quicksand, sans-serif;
  font-weight: 100;
  transition: opacity 0.4s ease, transform 0.4s ease; /* Animation */
}

/* Tooltip arrow */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* Position the arrow at the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #9f704fd0 transparent transparent transparent; /* Updated to match tooltip */
}

/* Show the tooltip on hover with animation */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* Move tooltip into view */
  animation: tooltip-bounce 0.6s ease;
}

/* Animation for tooltip */
@keyframes tooltip-bounce {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  10% {
    transform: translateX(-50%) translateY(4px);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
  60% {
    transform: translateX(-50%) translateY(4px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}



.navigation {
  flex: 0 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
}

.navigation .btn {
  margin: 0 10px;
}

/* Disabled button */
.btn.disabled,
.btn:disabled {
  background-color: #f0dac5;
  color: #3f3d3b;
}



/* Additional styles */
.option input:checked + .option-text {
  font-weight: 300;
  color: #9f714f;
}

/* Product Section */
.recommended-products {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recommended-products h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
  font-family: 'Merriweather', serif;
  font-weight: 300;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: #f8f9fa;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

.product-image {
  position: relative;
  width: 100%;
  padding-top: 66%; /* Adjusted for better proportions */
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-image .hover-image {
  opacity: 0;
}

.product-card:hover .hover-image {
  opacity: 1;
}

.product-info {
  position: relative;
  padding: 1rem;
  padding-bottom: 4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 400;
  font-family: 'Merriweather', serif;
}

.product-info p {
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.product-link {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: #9f714f;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-weight: 300;
  transition: all 0.2s ease;
}

.product-link:hover {
  background-color: #845c3d;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .products-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .recommended-products {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .products-container {
    grid-template-columns: 1fr;
  }
  
  .product-info {
    padding: 1rem;
    padding-bottom: 4rem;
  }
}

@media print {
  .recommended-products {
    display: none;
  }
}


.start-over-btn {
  background-color: #edd3b9;
  padding: 0.6rem 1.3rem;
  border-radius: 24px;
  text-decoration: none;
  font-size: 16px;
  font-family: Quicksand, sans-serif;
  font-weight: 300;
  transition: all 0.5s ease;
  cursor: pointer;
  border: none;
  margin-top: 0px;
}

.start-over-btn:hover {
  background-color: #f0dac5;
  transform: scale(1.05);
}

/* CSS for the toast popup */
.toast {
  position: fixed;
  bottom: 60px; /* Reduced distance from bottom */
  left: 50%;
  transform: translateX(-50%) translateY(20px); /* Start slightly below */
  background-color: rgba(159, 112, 79, 0.85); /* Adjusted for better opacity */
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0; /* Start invisible */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smoother transitions */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a subtle shadow */
}

.toast.show {
  opacity: 1; /* Fully visible */
  transform: translateX(-50%) translateY(0); /* Move to original position */
}

.toast.fade-out {
  opacity: 0; /* Fade out */
  transform: translateX(-50%) translateY(20px); /* Move slightly down */
}


/* .skincare-routine {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */

.routine-preview-header {
  position: relative;
  text-align: center;
  z-index: 1;
  margin-bottom: -15px;
}

.routine-preview-header h2 {
  color: #2c3e50;
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.routine-preview-badge {
  display: inline-block;
  background: #9f714f;
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
  margin-left: 1rem;
  vertical-align: middle;
}

.routine-time-block {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.routine-time-block h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.routine-step {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.routine-step h4 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  text-transform: capitalize;
}

.product-name {
  color: #7d796c;
  font-weight: 500;
  margin: 0.5rem 0;
  padding: 0.25rem 0.5rem;
  background: #f8f9fa;
  border-radius: 0.25rem;
  display: inline-block;
}

.instructions {
  color: #495057;
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
}

.routine-unlock-prompt {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.unlock-benefits {
  max-width: 600px;
  margin: 0 auto;
}

.unlock-benefits h3 {
  color: #2c3e50;
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: left;
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-item p {
  color: #495057;
  margin: 0;
  font-size: 0.95rem;
}

.unlock-cta {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}

.preview-email {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  font-family: 'Quicksand', sans-serif;
}

.unlock-routine-btn {
  background: #9f714f;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.unlock-routine-btn:hover {
  background: #845c3d;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-note {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.skincare-routine {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  font-family: 'Merriweather', serif;
}

.skincare-routine h2 {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.routine-intro {
  font-size: 1rem;
  color: #555;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

.routine-time-block {
  background: #f9f9f9;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.routine-time-block h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 300;
  color: #3f3d3b;
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 0.5rem;
}

.routine-step {
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.routine-step h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 400;
  text-transform: capitalize;
}

.routine-product {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

@media screen and (max-width: 600px) {
  .routine-product {
    flex-direction: column;
    align-items: center;
  }
  
}

.routine-product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.routine-product-info {
  display: flex;
  flex-direction: column;
}

.product-name {
  background: #f1f1f1;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.product-name a {
  text-decoration: none;
  color: #2c3e50;
}

.product-name a:hover {
  text-decoration: underline;
}

.instructions {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.frequency {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.routine-tips-block {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.routine-tips-block h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: #2c3e50;
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 0.5rem;
}

.routine-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}

.routine-tips li {
  font-size: 0.9rem;
  color: #555;
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .skincare-routine {
    padding: 1.5rem;
  }
  
  .unlock-cta {
    flex-direction: column;
  }
  
  .unlock-routine-btn {
    width: 100%;
  }
  
  .benefits-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .routine-time-block {
    padding: 1rem;
  }
  
  .routine-step {
    padding: 0.75rem;
  }
}

/* .notes        { margin: .4em 0; font-style: italic; }
.pros, .cons  { margin: .4em 0 .6em; padding-left: 1rem; }
.pros li      { list-style: '✔ '; }
.cons li      { list-style: '✖ '; }
.ingredients  { margin: .4em 0; font-size: .9em; }
.eco          { margin: .4em 0; font-weight: 600; } */

/* === Extra-details dropdown (results page) ============================= */
.extra-details {
  background: #f6ede2;          /* sandy-cream */
  border: 1px solid #eee9e4;    /* lighter peach bevel */
  border-radius: 6px;
  margin-top: 10px;
  padding: 0;                   /* summary handles outer spacing */
  overflow: hidden;             /* Enables max-height animation  */
  transition: box-shadow .35s ease;
}

.extra-details summary {
  list-style: none;             /* hide default arrow */
  cursor: pointer;
  padding: 12px 16px;
  font-family: Quicksand, sans-serif;
  font-size: 1rem;;
  font-weight: 400;
  color: #3f3d3b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ► custom chevron */
.extra-details summary::before {
  content: "▸";
  font-size: 1rem;
  transition: transform .35s ease;
}

/* ▼ rotate on open */
.extra-details[open] summary::before {
  transform: rotate(90deg);
}

.extra-details[open] {
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

/* --- smooth accordion “butter” ---------------------------------------- */
.extra-details > *:not(summary) {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s cubic-bezier(.25,.8,.25,1),
              opacity    .4s ease;
}

.extra-details[open] > *:not(summary) {
  max-height: 1000px;  /* large enough for any content */
  opacity: 1;
}

/* --- pros / cons lists ------------------------------------------------- */
.extra-details div {
  margin: 0 0 0 0;
  padding: 0 18px;
  font-size: .95rem;
  line-height: 1.5;
  font-family: Quicksand, sans-serif;
}

.pros, .cons {
  margin-bottom: 12px !important;
}

.extra-details .pros  div::before,
.extra-details .cons div::before {
  content: "";
  display: inline-block;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  top: -.05rem;
  margin-bottom: 0;
}

.extra-details .pros  div::before { background: #4d8266; } /* sea-foam green  */
.extra-details .cons div::before { background: #b85c4f; } /* terra-cotta     */

.extra-details .pros div,
.extra-details .cons div {
  color: #3f3d3b;
  font-weight: 300;
}