/* =========================================================
   NERAYAS PERSONALIZED ROUTINE
========================================================= */

.nerayas-routine {
  padding: 80px 20px;
  background: #f4f1ea;
  color: #25271f;
}

.nerayas-routine-container {
  max-width: 1180px;
  margin: auto;
  padding: 55px;
  background: #fffdf9;
  border: 1px solid rgba(40, 45, 30, 0.12);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(40, 45, 30, 0.08);
}

.nerayas-routine * {
  box-sizing: border-box;
}


/* =========================================================
   INTRO
========================================================= */

.routine-intro {
  max-width: 700px;
  margin: 0 auto 45px;
  text-align: center;
}

.routine-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #68704f;
}

.routine-intro h2 {
  margin: 12px 0;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
}

.routine-intro p {
  color: #707068;
  font-size: 15px;
}


/* =========================================================
   PROGRESS
========================================================= */

.routine-progress {
  height: 4px;
  margin-top: 28px;
  background: #e5e2d9;
  border-radius: 10px;
  overflow: hidden;
}

.routine-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #4c5937;
  transition: width 0.3s ease;
}


/* =========================================================
   STEPS
========================================================= */

.routine-step {
  display: none;
}

.routine-step.active {
  display: block;
  animation: routineFadeIn 0.28s ease;
}

.routine-step h3 {
  margin: 20px 0 30px;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

@keyframes routineFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   OPTIONS GRID
========================================================= */

.routine-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}


/* =========================================================
   OPTION CARD
========================================================= */

.routine-option {
  position: relative;

  display: flex;
  align-items: center;
  gap: 18px;

  width: 100%;
  min-height: 110px;

  padding: 20px;

  background: #fff;

  border: 1px solid #dedbd2;
  border-radius: 14px;

  text-align: left;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;

  font-family: inherit;
  appearance: none;
}


/* =========================================================
   OPTION ICON
========================================================= */

.routine-option-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}


/* =========================================================
   OPTION CONTENT
========================================================= */

.routine-option-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.routine-option strong {
  display: block;

  margin: 0;

  color: #333b28;

  font-size: 16px;
  font-weight: 600;

  line-height: 1.3;

  transition: color 0.25s ease;
}

.routine-option small {
  display: block;

  color: #777;

  font-size: 13px;

  line-height: 1.4;

  transition: color 0.25s ease;
}


/* =========================================================
   HOVER
========================================================= */

.routine-option:hover {
  transform: translateY(-4px);

  background-color: #fff;

  border-color: #515e36;

  box-shadow: 0 12px 30px rgba(40, 45, 30, 0.12);
}


/* Icon hover */

.routine-option:hover .routine-option-icon {
  transform: scale(1.08);
}


/* Text hover */

.routine-option:hover strong,
.routine-option:hover small {
  color: #515e36;
}


/* =========================================================
   SELECTED OPTION
========================================================= */

.routine-option.selected {
  background: #4c5937;

  border-color: #4c5937;

  box-shadow: 0 12px 30px rgba(40, 45, 30, 0.12);
}

.routine-option.selected strong,
.routine-option.selected small {
  color: #fff;
}



/* =========================================================
   KEYBOARD ACCESSIBILITY
========================================================= */

.routine-option:focus-visible {
  outline: 2px solid #68704f;
  outline-offset: 3px;
}


/* =========================================================
   RESULT
========================================================= */

.result-header {
  text-align: center;
  margin-bottom: 35px;
}

.result-header span {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #68704f;
}

.result-header h3 {
  margin: 10px 0;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}

.result-header p {
  max-width: 650px;
  margin: auto;
  color: #6e6d65;
}

.routine-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.routine-summary li {
  min-height: 82px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e4e0d7;
  border-radius: 12px;
}

.routine-summary span,
.routine-summary strong {
  display: block;
}

.routine-summary span {
  color: #777;
  font-size: 11px;
  line-height: 1.35;
}

.routine-summary strong {
  margin-top: 8px;
  color: #333b28;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}


/* =========================================================
   PRODUCT RESULT CARDS
========================================================= */

.result-products {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;
}

.result-product {
  padding: 22px;

  background: #f9f8f3;

  border: 1px solid #e1ded5;

  border-radius: 14px;
}

.result-number {
  font-size: 12px;

  color: #68704f;

  margin-bottom: 15px;
}

.result-product small {
  text-transform: uppercase;

  letter-spacing: 0.1em;

  color: #777;

  font-size: 10px;
}

.result-product h4 {
  margin: 8px 0 15px;

  font-size: 17px;

  font-weight: 500;
}

.result-product p {
  min-height: 58px;
  margin: 0 0 16px;
  color: #6e6d65;
  font-size: 13px;
  line-height: 1.5;
}

.result-product a {
  color: #333b28;

  font-size: 11px;

  letter-spacing: 0.1em;

  text-decoration: none;
}


/* =========================================================
   RESULT PRODUCT IMAGE
========================================================= */

.result-product img {

  width: 100%;

  height: 180px;

  object-fit: contain;

  display: block;

  margin-bottom: 15px;
}


/* =========================================================
   BUTTON
========================================================= */

.result-bottom {
  text-align: center;

  margin-top: 30px;
}

.shop-routine {
  display: inline-block;

  padding: 15px 28px;

  background: #29301f;

  color: #fff;

  text-decoration: none;

  border-radius: 6px;

  font-size: 12px;

  letter-spacing: 0.08em;

  transition: 0.25s ease;
}

.shop-routine:hover {
  background: #4c5937;

  color: #fff;

  transform: translateY(-2px);
}

.routine-reset {
  display: block;

  margin: 20px auto 0;

  border: 0;

  background: transparent;

  text-decoration: none;

  cursor: pointer;

  color: #555;
}

.routine-disclaimer {
  margin-top: 20px;

  text-align: center;

  color: #888;

  font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

  .nerayas-routine-container {
    padding: 35px 20px;
  }

  .routine-intro h2 {
    font-size: 34px;
  }

  .routine-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .routine-summary {
    grid-template-columns: 1fr;
  }

  .routine-option {
    min-height: 105px;
  }

  .routine-option-icon {
    width: 52px;
    height: 52px;

    flex-basis: 52px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

  .nerayas-routine {
    padding: 40px 12px;
  }

  .nerayas-routine-container {
    padding: 30px 16px;

    border-radius: 16px;
  }

  .routine-intro h2 {
    font-size: 30px;
  }

  .routine-options {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .routine-option {
    min-height: 90px;

    padding: 16px;

    gap: 14px;
  }

  .routine-option-icon {
    width: 48px;
    height: 48px;

    flex-basis: 48px;
  }

  .routine-option strong {
    font-size: 15px;
  }

  .routine-option small {
    font-size: 12px;
  }

  .result-products {
    grid-template-columns: 1fr;
  }

  .result-header h3 {
    font-size: 30px;
  }

  .result-product p {
    min-height: auto;
  }
}
