/* Styles for the whole Skincare website */

/* The page: readable font, soft background, text in a centred column */
body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #2b2b2b;
  background-color: #fdf7f7;   /* the exact background of the Skinderella logo */
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
}

h1, h2 {
  color: #b5536b;
}

h3 {
  color: #7a3c4b;
  margin-bottom: 4px;
}

/* Each topic sits on its own white card */
section {
  background-color: white;
  border-radius: 12px;
  padding: 8px 20px;
  margin-bottom: 20px;
}

/* Links that look like buttons (class="button") */
.button {
  display: inline-block;
  background-color: #b5536b;
  color: white;
  padding: 10px 18px;
  border-radius: 24px;
  text-decoration: none;
  margin: 4px 4px 4px 0;
}

/* Buttons for pages that do not exist yet: greyed out */
.soon {
  background-color: #eeeeee;
  color: #888888;
}

/* The menu at the top of every page */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eadbd6;
}

nav a {
  color: #b5536b;
  font-weight: 600;
  text-decoration: none;
}

/* The page you are on is shown in dark text */
nav a[aria-current="page"] {
  color: #2b2b2b;
}

/* In the menu, "coming soon" items are grey text, not grey buttons */
nav .soon {
  background-color: transparent;
}

footer {
  font-size: 0.9em;
  color: #666666;
}

/* Find My Match: the form */
form label {
  display: block;
  font-weight: 600;
  margin-top: 14px;
}

select, input[type="number"] {
  font: inherit;
  padding: 8px;
  border: 1px solid #d8c4be;
  border-radius: 8px;
  background-color: white;
  width: 100%;
  box-sizing: border-box;
}

.row {
  display: flex;
  gap: 8px;
}

.row select {
  width: auto;
}

fieldset {
  border: none;
  padding: 0;
  margin-top: 14px;
}

legend {
  font-weight: 600;
}

form label.tick {
  font-weight: normal;
  margin-top: 4px;
}

form .button {
  border: none;
  font: inherit;
  cursor: pointer;
  margin-top: 18px;
}

.hint {
  font-size: 0.9em;
  color: #666666;
  margin-top: 4px;
}

/* Find My Match: the results */
.problem, .warning {
  background-color: #fff3e6;
  border-left: 4px solid #e39a4b;
  padding: 6px 10px;
}

.reminder {
  background-color: #f6eef0;
  padding: 6px 10px;
  border-radius: 8px;
}

.product .photo {   /* only the product photo, not the crown or tiara */
  display: block;
  max-width: 160px;
  max-height: 160px;
  margin: 12px auto 0;
}

.credit {
  font-size: 0.8em;
  color: #888888;
  text-align: center;
  margin: 0;
}

.price {
  font-weight: 600;
  margin-top: 0;
}

.badges span {
  display: inline-block;
  background-color: #eaf4ec;
  color: #2f6b3c;
  border-radius: 12px;
  padding: 2px 10px;
  margin: 0 6px 6px 0;
  font-size: 0.9em;
}

h4 {
  margin-bottom: 2px;
  color: #7a3c4b;
}

details {
  margin: 12px 0;
}

summary {
  cursor: pointer;
  color: #b5536b;
  font-weight: 600;
}

/* Match stars: soft pink pill with pink stars (Sureen: "make it cute") */
.match {
  display: inline-block;
  background-color: #fbe9ee;
  border-radius: 16px;
  padding: 2px 12px;
  margin: 0 0 8px;
}

.stars .on {
  color: #e0708d;
  letter-spacing: 2px;
}

.stars .off {
  color: #f1cdd6;
  letter-spacing: 2px;
}

.match-word {
  font-size: 0.85em;
  color: #7a3c4b;
}

.star-note {
  background-color: #fbe9ee;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9em;
  color: #7a3c4b;
}

/* 5 match stars: a special golden look (Sureen's idea) */
.match.gold {
  background: linear-gradient(135deg, #fff6d8, #ffe7a3);
  box-shadow: 0 0 10px rgba(240, 190, 60, 0.45);
}

.match.gold .stars .on {
  color: #e6a817;
  text-shadow: 0 0 4px rgba(255, 210, 80, 0.8);
}

.top-word {
  font-weight: 700;
  color: #a86f00;
  font-size: 0.9em;
}

.gold-card {
  border: 2px solid #f3d27a;
  box-shadow: 0 2px 14px rgba(240, 190, 60, 0.25);
}

/* The little Cupid heart next to "Find My Match" gently floats */
.cupid {
  display: inline-block;
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-5px) rotate(6deg); }
}

/* People who turn off animations in their settings get a still heart */
@media (prefers-reduced-motion: reduce) {
  .cupid { animation: none; }
}

/* The Cupid heart picture (cupid-heart.svg) next to "Find My Match" */
.cupid-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
}

/* On the white button, the heart sits on a small white circle so it stays visible */
.button .cupid-icon {
  background-color: white;
  border-radius: 50%;
  padding: 1px;
}

.cupid-big {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
}

/* The Skinderella logo (made with an AI image tool, 2026-11-23) at the top of the home page */
.logo {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 8px auto 0;
}

/* Sureen's slogan under the logo */
.slogan {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.15em;
  color: #8a5866;   /* close to the plum colour of the logo's lettering */
  margin-top: 4px;
}

/* On Find My Match the title is on the left, so the slogan is too */
.slogan.left {
  text-align: left;
}

/* The princess crown on 5-star "Top match" products (crown.svg) */
.crown {
  width: 1.3em;
  height: 1.3em;
  vertical-align: -0.3em;
}

/* Top match line: "Top match", crown, stars, all lined up in the middle */
.match.gold {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* The tiara perched on the top-left corner of a 5-star card, its pearl strand hanging down
   the left edge (tiara.svg, Sureen's idea from her picture) */
.gold-card {
  position: relative;      /* so the tiara can be placed on this card's corner */
  margin-top: 56px;        /* room above the card for the tiara */
  padding-top: 30px;
}

.tiara {
  position: absolute;
  top: -57px;              /* the band's right end sits exactly on the top border */
  left: -28px;             /* the band's left end sits exactly on the left border */
  width: 210px;
  height: auto;
  pointer-events: none;    /* it's decoration: clicks go through it */
}

/* On a phone the tiara is a bit smaller, so it doesn't stick out of the screen */
@media (max-width: 600px) {
  .gold-card { margin-top: 36px; }
  .tiara { width: 160px; top: -43px; left: -22px; }
}

/* The budget box when "No budget limit" is ticked */
input:disabled {
  background-color: #f3eeee;
  color: #aaaaaa;
}

/* Explore Ingredients: the list of ingredient cards */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px 14px;   /* extra space between rows, so the Niacinamide drips don't touch the card below */
}

.ingredient-card {
  display: block;
  background-color: white;
  border-radius: 12px;
  padding: 4px 16px 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #f1dde2;
}

.ingredient-card:hover {
  border-color: #e0708d;
  box-shadow: 0 2px 10px rgba(224, 112, 141, 0.18);
}

.ingredient-card h2 {
  font-size: 1.2em;
}

.ingredient-card ul {
  padding-left: 18px;
  font-size: 0.92em;
}

.read-more {
  color: #b5536b;
  font-weight: 600;
}

/* One ingredient: rating labels */
.rating-list {
  list-style: none;
  padding-left: 0;
}

.rating-list li {
  margin-bottom: 6px;
}

.rating {
  display: inline-block;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 0.85em;
  font-weight: 600;
}

.rate-excellent, .combo-fine-together { background-color: #e3f2e6; color: #2f6b3c; }
.rate-good { background-color: #eef6e1; color: #4d6b1f; }
.rate-moderate, .combo-use-at-different-times { background-color: #fff4d6; color: #8a6400; }
.rate-limited, .combo-check-first { background-color: #fde9da; color: #9a4a12; }
.rate-no-direct-benefit, .combo-not-assessed { background-color: #eeeeee; color: #666666; }
.combo-avoid-together { background-color: #fbe0e4; color: #9b2c3f; }

.extra {
  font-size: 0.8em;
  background-color: #f3eeee;
  color: #777777;
  border-radius: 8px;
  padding: 0 6px;
}

/* One ingredient: small product cards */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mini-card {
  text-align: center;
  border: 1px solid #f1dde2;
  border-radius: 10px;
  padding: 8px;
}

.mini-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.mini-name {
  font-size: 0.85em;
  font-weight: 600;
  margin: 4px 0 0;
}

/* Sources page: one folding box per brand */
.brand-box {
  border-top: 1px solid #f1dde2;
  padding: 6px 0;
}

.brand-box h4 {
  margin: 10px 0 2px;
}

.brand-box ul {
  margin-top: 2px;
  font-size: 0.92em;
}

/* Routine checker: ingredients as tick-box "chips" */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #fbe9ee;
  border-radius: 16px;
  padding: 4px 12px;
  cursor: pointer;
}

.chip:has(input:checked) {
  background-color: #e0708d;
  color: white;
}

.routine-summary {
  font-weight: 600;
  color: #7a3c4b;
}

/* Explore Ingredients: each ingredient's own card colour (Sureen's choices) */
.ing-azelaic-acid {
  /* leafy and natural: soft leaves (leaves.svg) over a fresh green */
  background:
    url("leaves.svg"),
    linear-gradient(160deg, #eef8ec 0%, #d8efd6 100%);
  background-size: 140px 140px, cover;
  border-color: #9fd19f;
}

.ing-azelaic-acid h2,
.ing-azelaic-acid .read-more {
  color: #3f7a43;
}

.ing-benzoyl-peroxide {
  background: url("bacteria.svg") 0 0 / 150px 150px, #1f3a5f;   /* defeated germs on dark medical blue */
  border-color: #1f3a5f;
  color: #ffffff;              /* white text, so it stays easy to read */
}

.ing-benzoyl-peroxide h2,
.ing-benzoyl-peroxide .read-more {
  color: #ffffff;
}

.ing-benzoyl-peroxide .hint {
  color: #c9d8ec;
}

.ing-beta-glucan {
  /* soft and bubbly: extra-round corners and see-through bubbles in the corners,
     on pale blue fading into white */
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,0.95) 0 9px, rgba(150,195,232,0.7) 10px 11px, transparent 12px),
    radial-gradient(circle at 84% 20%, rgba(255,255,255,0.95) 0 5px, rgba(150,195,232,0.7) 6px 7px, transparent 8px),
    radial-gradient(circle at 95% 25%, rgba(255,255,255,0.95) 0 3px, rgba(150,195,232,0.7) 4px 5px, transparent 6px),
    radial-gradient(circle at 8% 90%, rgba(255,255,255,0.95) 0 11px, rgba(150,195,232,0.6) 12px 13px, transparent 14px),
    radial-gradient(circle at 17% 95%, rgba(255,255,255,0.95) 0 5px, rgba(150,195,232,0.6) 6px 7px, transparent 8px),
    radial-gradient(circle at 4% 78%, rgba(255,255,255,0.95) 0 3px, rgba(150,195,232,0.6) 4px 5px, transparent 6px),
    linear-gradient(135deg, #dcecf9, #ffffff);
  border-color: #b9d6ee;
}

.ing-ceramides {
  /* warm ivory with soft glossy swirls, like a creamy moisturiser */
  background:
    radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.95), transparent 45%),
    radial-gradient(ellipse at 80% 75%, rgba(255, 252, 245, 0.9), transparent 50%),
    radial-gradient(ellipse at 60% 35%, rgba(244, 234, 216, 0.7), transparent 40%),
    #f8f1e6;
  border-color: transparent;
  position: relative;
}

/* Ceramides: a real creamy outline, glossy cream dollops piped all around the edge
   (cream-h.svg and cream-v.svg), like frosting on a cake. CSS alone can only draw flat lines or glows. */
.ing-ceramides::before {
  content: "";
  position: absolute;
  inset: -10px;
  background:
    url("cream-h.svg") left top / 30px 20px repeat-x,
    url("cream-h.svg") left bottom / 30px 20px repeat-x,
    url("cream-v.svg") left top / 20px 30px repeat-y,
    url("cream-v.svg") right top / 20px 30px repeat-y;
  filter: drop-shadow(0 1px 1.5px rgba(170, 140, 90, 0.35));
  pointer-events: none;
}

.ing-hyaluronic-acid {
  /* swimming pool: shimmering light lines (pool-ripples.svg) over clear aqua water */
  background:
    url("pool-ripples.svg"),
    linear-gradient(160deg, #c8f1f8 0%, #8fdbeb 55%, #6ccbe0 100%);
  background-size: 120px 120px, cover;
  border-color: #6ccbe0;
}

.ing-niacinamide {
  background-color: #c8414f;   /* rich red */
  border-color: #c8414f;
  color: #ffffff;              /* white text on red, so it stays easy to read */
}

.ing-niacinamide h2,
.ing-niacinamide .read-more {
  color: #ffffff;
}

.ing-niacinamide .hint {
  color: #fbd9dd;
}

.ing-retinoids {
  /* modern clinical: clean white, a faint lab-paper grid and a steel-blue line on top */
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(47, 111, 143, 0.07) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(47, 111, 143, 0.07) 19px 20px),
    #fbfdfe;
  border: 1px solid #c9d6de;
  border-top: 5px solid #2f6f8f;
}

.ing-retinoids h2 {
  color: #2f4f63;
  letter-spacing: 0.02em;
}

.ing-retinoids .read-more {
  color: #2f6f8f;
}

.ing-salicylic-acid {
  background-color: #fcd9e5;   /* soft pastel pink */
  border-color: #f3a9c2;
}

.ing-vitamin-c {
  /* like the sun: a glowing sun in the top-right corner on warm orange-yellow */
  background:
    radial-gradient(circle at 88% 12%, #fffbe0 0, #fff3a8 9%, #ffd65a 20%, rgba(255, 214, 90, 0) 45%),
    linear-gradient(160deg, #ffe48a 0%, #ffc560 55%, #ffa94d 100%);
  border-color: #f5a93b;
}

.ing-vitamin-c h2,
.ing-vitamin-c .read-more {
  color: #8a3b12;
}

/* Hyaluronic Acid: a pool floaty (floaty.svg) bobbing in the top corner, added without changing the page */
.ing-hyaluronic-acid {
  position: relative;
}

.ing-hyaluronic-acid::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 48px;
  height: 48px;
  background: url("floaty.svg") no-repeat center / contain;
  animation: bob 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(4px) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ing-hyaluronic-acid::after { animation: none; }
}

/* Niacinamide: red liquid dripping off the bottom edge of the card (drips.svg) */
.ing-niacinamide {
  position: relative;
}

.ing-niacinamide::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -20px;            /* the drips hang below the card */
  height: 22px;
  background: url("drips.svg") repeat-x left top / 150px 22px;
  pointer-events: none;
}

/* Salicylic acid: a creamy outline like Ceramides, but thinner and lighter, in pink */
.ing-salicylic-acid {
  border: 4px solid #f8c6d6;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1.5px #fff5f8,
    0 2px 7px rgba(214, 120, 150, 0.18);
}

/* Vitamin C: a sun-ray border, golden stripes radiating from the sun in the corner.
   Each background layer says where it is painted: inside the card (padding-box) or under the border (border-box). */
.ing-vitamin-c {
  border: 6px solid transparent;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, #fffbe0 0, #fff3a8 9%, #ffd65a 20%, rgba(255, 214, 90, 0) 45%) padding-box,
    linear-gradient(160deg, #ffe48a 0%, #ffc560 55%, #ffa94d 100%) padding-box,
    repeating-conic-gradient(from 0deg at 88% 12%, #ff9f2e 0deg 5deg, #ffe680 5deg 10deg) border-box;
  box-shadow: 0 0 12px rgba(255, 170, 60, 0.35);
}

/* Azelaic acid: a leafy vine wrapped around the card's edges (vine-h.svg and vine-v.svg) */
.ing-azelaic-acid {
  position: relative;
}

.ing-azelaic-acid::before {
  content: "";
  position: absolute;
  inset: -9px;               /* a little outside the card, so the vine sits on the edge */
  background:
    url("vine-h.svg") left top / 40px 18px repeat-x,
    url("vine-h.svg") left bottom / 40px 18px repeat-x,
    url("vine-v.svg") left top / 18px 40px repeat-y,
    url("vine-v.svg") right top / 18px 40px repeat-y;
  pointer-events: none;
}

/* Explore Products: filters */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 4px 14px;
}

.filters input[type="search"] {
  font: inherit;
  padding: 8px;
  border: 1px solid #d8c4be;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.filters fieldset, .filters .button {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Explore Products: product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.shop-card {
  background-color: white;
  border: 1px solid #f1dde2;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.shop-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.shop-card p {
  margin: 2px 0;
}

.type-tag {
  display: inline-block;
  font-size: 0.75em;
  background-color: #fbe9ee;
  color: #7a3c4b;
  border-radius: 8px;
  padding: 0 8px;
}

.shop-card .badges span {
  font-size: 0.75em;
}

.compare-tick {
  font-size: 0.9em;
  color: #b5536b;
  cursor: pointer;
}

/* Explore Products: side-by-side comparison */
.table-scroll {
  overflow-x: auto;          /* on a phone, the table can be scrolled sideways */
}

.compare-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
}

.compare-table th, .compare-table td {
  border-bottom: 1px solid #f1dde2;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.compare-table tr:first-child th {
  text-align: center;
  color: #7a3c4b;
}

.compare-table img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}

.compare-table th:first-child {
  color: #7a3c4b;
  width: 24%;
}

/* Skin type quiz */
.quiz-question {
  background-color: white;
  border-radius: 12px;
  padding: 10px 18px 14px;
  margin-bottom: 14px;
  border: 1px solid #f1dde2;
}

.quiz-question legend {
  font-weight: 600;
  color: #7a3c4b;
  padding: 0 4px;
}

.quiz-answer {
  display: block;
  padding: 6px 4px;
  cursor: pointer;
}

.quiz-answer:has(input:checked) {
  background-color: #fbe9ee;
  border-radius: 8px;
}

.skin-result h2 {
  margin-top: 8px;
}

/* A diagram with its caption (About Skin) */
.diagram {
  margin: 8px 0 16px;
  text-align: center;
}

.diagram img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.diagram figcaption {
  font-size: 0.85em;
  color: #666666;
}

/* Find My Match step by step (Sureen's design, 2026-11-23) */
[hidden] {
  display: none !important;   /* "hidden" always wins, even over buttons' display rule */
}

.progress p {
  margin: 0 0 6px;
  font-weight: 600;
  color: #7a3c4b;
}

.progress-bar {
  height: 10px;
  border-radius: 10px;
  background-color: #f1dde2;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #e59ab0, #b5536b);
  transition: width 0.4s ease;
}

/* Each question slides in gently */
.step {
  animation: step-in 0.35s ease;
  outline: none;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.step-buttons #next, .step-buttons #find {
  margin-left: auto;   /* Next and Find My Perfect Match on the right, Back on the left */
}

.button.secondary {
  background-color: white;
  color: #b5536b;
  border: 2px solid #b5536b !important;
}

/* People who asked their phone for less movement get no sliding */
@media (prefers-reduced-motion: reduce) {
  .step, #progress-fill {
    animation: none;
    transition: none;
  }
}

/* Find My Match: cuter dropdowns and tick boxes (Sureen, 2026-11-23) */
#guide-form select, #guide-form input[type="number"],
.filters select, .filters input[type="number"], .filters input[type="search"] {
  -webkit-appearance: none;
  appearance: none;              /* switch off the phone's grey look so ours shows */
  background-color: #fbe9ee;
  border: 2px solid #e8b4c2;
  border-radius: 999px;          /* pill shape */
  padding: 10px 16px;
  color: #7a3c4b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* A little rose heart instead of the arrow */
#guide-form select, .filters select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b5536b' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.1 0 3.6 1.2 5.2 3 1.6-1.8 3.1-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

/* A soft pink glow on the one you are choosing */
#guide-form select:focus, #guide-form input[type="number"]:focus,
.filters select:focus, .filters input:focus {
  outline: none;
  border-color: #b5536b;
  box-shadow: 0 0 0 4px rgba(181, 83, 107, 0.2);
}

#guide-form input[type="number"]:disabled {
  opacity: 0.5;                  /* "No budget limit" ticked */
}

/* Rose pink tick boxes */
#guide-form input[type="checkbox"], .filters input[type="checkbox"] {
  accent-color: #b5536b;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
}

/* "Finding your glass slipper…" while the server looks for matches */
.finding {
  text-align: center;
  color: #7a3c4b;
  font-weight: 600;
  padding: 20px 0;
}

.finding img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  animation: slipper-pulse 1.2s ease-in-out infinite;
}

@keyframes slipper-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .finding img { animation: none; }
}

/* "Start again" under the results */
#results > .button.secondary {
  margin-top: 16px;
}

/* Find My Match: several concerns (Sureen, 2026-11-23) */
/* Concerns as tick-pills: pale pink, filled rose when ticked */
.pill-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#guide-form label.pill {
  display: inline-block;
  margin: 0;
  font-weight: normal;
  position: relative;
}

#guide-form .pill input[type="checkbox"] {
  position: absolute;     /* the real tick box is invisible; the pill shows the choice */
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.pill span {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #e8b4c2;
  border-radius: 999px;
  background-color: #fbe9ee;
  color: #7a3c4b;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pill input:checked + span {
  background-color: #b5536b;
  border-color: #b5536b;
  color: white;
}

.pill input:checked + span::before {
  content: "♥ ";
}

.pill input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(181, 83, 107, 0.25);
}

/* Stars: one line per concern */
.match-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}

.match-box .match {
  margin: 0;
}

.concern-word {
  font-size: 0.85em;
  font-weight: 600;
  color: #7a3c4b;
}

.match.five .stars .on {
  color: #e6a817;
  text-shadow: 0 0 4px rgba(255, 210, 80, 0.8);
}

/* "Top match" (golden) and "Diamond match" title pills */
.match-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  padding: 2px 12px;
  margin: 0;
}

.match-title.gold {
  background: linear-gradient(135deg, #fff6d8, #ffe7a3);
  box-shadow: 0 0 10px rgba(240, 190, 60, 0.45);
}

.match-title.diamond {
  background: linear-gradient(135deg, #ffffff, #eef3fb 35%, #f7f2fd 55%, #ecf6ff 75%, #ffffff);
  box-shadow: 0 0 10px rgba(150, 180, 230, 0.5), 0 0 3px rgba(255, 190, 225, 0.6);
}

.match-title.diamond .top-word {
  color: #4b5f86;
}

/* Diamond card: icy blue border and glow, a silver tiara, icy stars */
.diamond-card {
  position: relative;
  margin-top: 56px;
  padding-top: 30px;
  border: 2px solid #c9d5ea;
  box-shadow: 0 2px 16px rgba(150, 180, 230, 0.35), 0 0 4px rgba(255, 200, 230, 0.4);
  background: linear-gradient(160deg, #ffffff 55%, #f6f8fd 80%, #f3f0fb);
}

.diamond-card .tiara {
  filter: drop-shadow(0 0 3px rgba(170, 200, 255, 0.8));   /* a soft icy glow */
}

.diamond-card .match.five .stars .on {
  color: #9fb4d8;
  text-shadow: 0 0 3px rgba(255, 255, 255, 1), 0 0 6px rgba(160, 195, 255, 0.8), 0 0 2px rgba(255, 190, 225, 0.6);
}

@media (max-width: 600px) {
  .diamond-card { margin-top: 36px; }
}

/* Diamond match card: a frame of little diamonds all the way around (Sureen, 2026-11-23).
   The border is 10px wide; the tiara moves 8px further out so it still sits on the frame. */
.diamond-card {
  border: 10px solid transparent;
  border-image: url("diamond-border.svg?v=1") 10 round;
}

.diamond-card .tiara {
  top: -65px;
  left: -36px;
}

@media (max-width: 600px) {
  .diamond-card .tiara { top: -51px; left: -30px; }
}

/* Diamond match card: an opal shimmer instead of plain white (Sureen, 2026-11-23).
   Soft icy blue, lilac, blush and mint, light enough to read; it drifts slowly. */
.diamond-card {
  background: linear-gradient(120deg, #eef5ff, #f7f0fc, #fdf1f6, #eefaf6, #f1f2ff, #eef5ff);
  background-size: 300% 300%;
  animation: opal-drift 12s ease-in-out infinite;
}

@keyframes opal-drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .diamond-card { animation: none; }
}

/* Explore Products: pink "Compare" pills and the floating compare tray (Sureen, 2026-11-23) */
.shop-card label.pill {
  display: inline-block;
  position: relative;
  margin-top: 6px;
  font-size: 0.9em;
}

.pill input[type="checkbox"] {
  position: absolute;      /* the real tick box is invisible; the pill shows the choice */
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background-color: white;
  border: 2px solid #e8b4c2;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(122, 60, 75, 0.25);
  z-index: 20;
  animation: tray-up 0.3s ease;
}

@keyframes tray-up {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.tray-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tray-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  padding: 4px 4px 4px 6px;
  background-color: #fbe9ee;
  border: 1px solid #e8b4c2;
  border-radius: 14px;
  color: #7a3c4b;
  font-size: 0.85em;
}

.tray-chip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  background-color: white;
}

.tray-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;     /* long names end with "…" */
}

.tray-remove {
  flex: none;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background-color: #b5536b;
  color: white;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.tray-hint {
  margin: 0;
  font-size: 0.85em;
  color: #7a3c4b;
}

.compare-tray .button {
  margin: 0;
  border: none;
  font: inherit;
  cursor: pointer;
}

body.tray-open {
  padding-bottom: 110px;   /* so the tray never hides the last products */
}

@media (prefers-reduced-motion: reduce) {
  .compare-tray { animation: none; }
}

/* Pink pills everywhere (routine checker too) and pink quiz answers (Sureen, 2026-11-23) */
label.pill {
  display: inline-block;
  position: relative;
}

.quiz-answer input[type="radio"] {
  accent-color: #b5536b;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

/* Explore Products cards: everything in one centred column, so a short type tag ("Serum") can't
   squeeze next to the photo and push the card sideways (found by Sureen on her phone, 2026-11-23) */
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;            /* a card may never be wider than its column */
}

.shop-card img {
  display: block;
  margin: 0 auto 4px;
}

.shop-card .badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.shop-card label.pill {
  margin-top: auto;        /* the Compare pill sits at the bottom of every card, all in one line */
  padding-top: 6px;
}

/* Compare up to 3 (Sureen, 2026-11-23): a compact tray with the chips in one row, and a swipe hint */
.compare-tray {
  flex-direction: column;
  align-items: stretch;
}

.tray-chips {
  flex-wrap: nowrap;
}

.tray-chip {
  flex: 1 1 0;
  min-width: 0;            /* chips share the row; long names end with "…" */
  max-width: 220px;
}

.compare-tray .button, .tray-hint {
  align-self: center;
}

.swipe-hint {
  display: none;
  font-size: 0.9em;
  color: #b5536b;
  font-weight: 600;
}

@media (max-width: 600px) {
  .swipe-hint { display: block; }
  .tray-chip img { width: 24px; height: 24px; }
  .tray-chip { font-size: 0.8em; }
}

.tray-note {
  margin: 0;
  padding: 4px 10px;
  font-size: 0.8em;
  color: #7a3c4b;
  background-color: #fff3e6;   /* soft peach, like the other gentle notes */
  border-radius: 10px;
}

.compare-tray {
  flex-wrap: nowrap;   /* one column as wide as the tray: long names and the note fold inside it */
}
