/* Blush beauty UI. Presentation only: existing content, SEO and behavior are preserved. */
:root {
  color-scheme: light;
  --canvas: #fce5ef; --page: #fff; --surface: #fff; --soft: #fdf3f7;
  --field: #f8f7f8; --ink: #29212a; --muted: #766975; --line: #efe3e9;
  --accent: #b73570; --button: #c9427f; --accent-soft: #fbe9f1;
  --positive: #43765b; --positive-soft: #f0f7f2;
  --skeleton: #f1e3ea; --shine: #fff8fb;
  --header-height: 64px; --nav-height: 72px; --app-width: 448px; --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #191018; --page: #241b22; --surface: #2c2029; --soft: #352330;
    --field: #332b32; --ink: #f7edf3; --muted: #c4afbd; --line: #49333f;
    --accent: #f599bf; --button: #b8326d; --accent-soft: #472536;
    --positive: #a0ceb1; --positive-soft: #26372e; --skeleton: #46323e; --shine: #59404e;
  }
}
html { background: var(--canvas); scroll-padding-block: 84px 100px; }
body.bg-gray-100 {
  background: var(--canvas); color: var(--ink); font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body > div.max-w-md { max-width: var(--app-width); min-height: 100svh; background: var(--page); box-shadow: 0 0 70px rgb(188 81 130 / 5%); isolation: isolate; }
body .bg-white, body .bg-white\/90, body .bg-white\/95 { background-color: var(--surface); }
body .bg-gray-50 { background-color: var(--soft); }
body .bg-gray-100, body .bg-gray-200, body .bg-gray-300 { background-color: var(--field); }
body .text-gray-800, body .text-gray-700 { color: var(--ink); }
body .text-gray-600, body .text-gray-500, body .text-gray-400 { color: var(--muted); }
body .text-shopee, body .text-orange-500, body .text-blue-500 { color: var(--accent); }
body .bg-orange-50, body .bg-blue-50 { background: var(--soft); }
body .text-blue-800 { color: var(--muted); }
body .bg-green-50 { background: var(--positive-soft); }
body .text-green-600 { color: var(--positive); }
body [class*="border-gray-"], body [class*="border-orange-"] { border-color: var(--line); }
body .shadow-sm, body .shadow-md { box-shadow: none; }
body .rounded, body .rounded-lg, body .rounded-xl { border-radius: var(--radius); }
body .rounded-sm { border-radius: 4px; }
body .score-glow { animation: none; box-shadow: none; background: var(--accent-soft); }
body .bg-shopee { background-color: var(--button); }
/* Quiet header: existing logo and navigation, no new copy. */
body > div > header.bg-shopee { background: var(--page); color: var(--ink); border-radius: 0; box-shadow: none; padding-top: env(safe-area-inset-top, 0px); }
body > div > header > div.flex { min-height: var(--header-height); padding: 10px 22px; }
header a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
header img.h-5 { width: 96px; height: auto; aspect-ratio: 680 / 130; filter: brightness(0) saturate(100%) invert(32%) sepia(42%) saturate(1716%) hue-rotate(295deg) brightness(89%) contrast(89%); }
header a.text-white { color: var(--accent); }
header a.text-white\/70 { color: var(--muted); }
header .space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 14px; }
header a.border-r { border: 0; padding-right: 0; }
header a.relative { width: 44px; background: var(--soft); border-radius: 50%; }
header a.relative i { color: var(--button); font-size: 17px; }
header a.relative span { top: -2px; right: -2px; background: var(--button); color: #fff; }
main { padding-bottom: 16px !important; overflow: visible !important; }
main > .bg-shopee { background: var(--page); padding: 10px 22px 18px; border-radius: 0; box-shadow: none; }
main > .ui-search-hero { min-height: 104px; display: flex; align-items: center; padding: 18px 22px 28px; margin: 0; background: linear-gradient(165deg, var(--page) 25%, var(--soft) 100%); }
main form[action$="search"] { min-height: 48px; padding: 2px 8px !important; background: var(--field) !important; border-radius: 8px !important; box-shadow: none !important; border: 1px solid transparent; }
main form[action$="search"]:focus-within { border-color: var(--accent); }
main form input[name="q"] { min-width: 0; min-height: 44px; padding: 4px 8px; color: var(--ink) !important; font-size: 16px !important; }
main form input::placeholder { color: var(--muted); font-size: 12px; }
main form button { flex: 0 0 44px; min-width: 44px; margin: 0 !important; justify-content: center; color: var(--muted) !important; border-radius: 6px; }
main > .p-3, main > .p-4, main > .p-6 { padding: 18px 22px; }
main > .bg-white { margin: 12px 16px 0; border: 0; box-shadow: none; border-radius: var(--radius); }
main .sticky { position: static; top: auto; z-index: auto; }
main > .sticky { margin: 0; border-radius: 0; padding-inline: 22px; background: var(--page); }
main > .sticky:has(h2) { min-height: 52px; }
main > nav { padding-inline: 22px; background: var(--page) !important; border: 0; }
main h1 { font-size: 20px !important; font-weight: 500 !important; line-height: 1.4 !important; letter-spacing: -.025em; }
main h2 { font-size: 15px !important; font-weight: 500 !important; line-height: 1.4; }
main h3 { font-size: 14px !important; font-weight: 500 !important; line-height: 1.5; }
main h3 > i { font-size: 12px; color: var(--accent); }
main p, main .review-text, main [x-data="{ expanded: false }"] > div { line-height: 1.75; }
main p[class*="text-[1"], main p.text-xs { font-size: 12px; }
main .text-justify { text-align: start; }
main .text-xl { font-size: 18px; }
main .text-2xl { font-size: 22px; }
main .flex-1 { min-width: 0; }
main .grid { gap: 14px; }
main .grid > .bg-white { border: 0; box-shadow: none; }
main .grid-cols-2 > .bg-white { background: var(--soft); }
main .grid-cols-2 > .bg-white > .p-2\.5 { padding: 12px; }
main .grid-cols-2 .text-xs { font-size: 12px; font-weight: 500; line-height: 1.5; }
main .grid-cols-2 a.line-clamp-2 { min-height: 44px; }
main .grid-cols-2 .text-shopee { color: var(--ink); font-weight: 600; }
main .grid a[class*="text-[11px]"] { min-height: 44px; display: flex; align-items: center; justify-content: center; white-space: normal; }
main img { aspect-ratio: 1; object-fit: contain; flex-shrink: 0; background-color: #fff; }
main img.mix-blend-multiply { mix-blend-mode: normal; }
main div:has(> img) { background-color: #fff; }
main a[class*="pt-[100%]"] { background: #fff; border: 0; }
main a[class*="pt-[100%]"] > img { padding: 18px; }
main .h-28 > img { width: 100%; height: 100%; }
main button, main a.bg-shopee, main a[href^="?"] { min-height: 44px; min-width: 44px; touch-action: manipulation; }
main a.bg-shopee, main a[href^="?"] { display: inline-flex; align-items: center; justify-content: center; padding-inline: 18px; border-radius: 9px; font-size: 12px; }
main .bg-shopee.text-white { background: var(--button); color: #fff; }
main button.absolute { min-width: 44px; min-height: 44px; border: 0; background: var(--surface); border-radius: 50%; }
main button.absolute .text-shopee { color: var(--button); }
main button.absolute .text-gray-300 { color: var(--muted); }
main button.absolute i { font-size: 17px; }
/* Existing brand grid becomes a row of brand chips. */
.ui-page-feed > .p-3 > .mb-6:has(> .bg-white > [style*="grid-template-columns"]) { margin-bottom: 24px; }
.ui-page-feed .mb-6 > .bg-white:has(> [style*="grid-template-columns"]) { border: 0; padding: 0; background: transparent; border-radius: 0; }
.ui-page-feed .mb-6 > .bg-white > [style*="grid-template-columns"] { display: flex !important; overflow-x: auto; gap: 8px !important; padding-bottom: 6px; scrollbar-width: none; }
.ui-page-feed .mb-6 > .bg-white > [style*="grid-template-columns"] > a { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 24px; min-height: 44px; }
.ui-page-feed .mb-6 > .bg-white > [style*="grid-template-columns"] > a > div { width: 30px !important; height: 30px !important; padding: 4px; margin: 0; border: 0; background: #fff; }
.ui-page-feed .mb-6 > .bg-white > [style*="grid-template-columns"] > a > span { display: block; margin: 0; padding: 0; font-size: 11px; font-weight: 400; white-space: nowrap; color: var(--muted); }
.ui-page-feed hr { border-style: solid; border-color: var(--line); opacity: .65; }
.ui-page-feed .grid-cols-1 > .p-3 { border-radius: 0; background: var(--page); padding: 16px 0; border-bottom: 1px solid var(--line); }
.ui-page-feed .grid-cols-1 > .p-3 > a { background: var(--soft); border: 0; padding: 12px; }
.ui-page-feed .grid-cols-1 > .p-3 > .border-t { border: 0; }
.ui-page-feed .grid-cols-1 > .p-3 > .flex:first-child { flex-wrap: wrap; gap: 4px 0; }
.ui-page-feed .grid-cols-1 > .p-3 > .flex:first-child > .ml-auto { font-size: 9px; overflow-wrap: anywhere; }
#history-slider, #similar-slider { gap: 14px; scroll-snap-type: x proximity; padding: 0 0 10px; scrollbar-width: none; }
#history-slider > a, #similar-slider > a { width: 154px; min-width: 154px; border: 0; background: var(--soft); border-radius: var(--radius); }
#history-slider .h-28, #similar-slider .h-28 { height: 150px; padding: 18px; border: 0; background: #fff; }
#history-slider .p-2\.5, #similar-slider .p-2\.5 { padding: 8px 14px 16px; }
#history-slider p, #similar-slider h4 { font-weight: 500; }
#history-slider p.text-xs { font-size: 12px; line-height: 1.55; }
#history-slider img { width: 100%; height: 100%; }
#alpha-scroll-container a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.ui-page-brands .grid-cols-3 > a { background: var(--soft); padding: 12px 8px; }
.ui-page-brands .grid-cols-3 > a > div:last-child { font-weight: 500; font-size: 11px; }
/* Product image stage and purchase section. */
.ui-page-product > .bg-white:has(> .aspect-square) { background: linear-gradient(120deg, var(--soft), var(--page) 65%); margin: 0; padding: 20px 22px 16px; border-radius: 0; }
.ui-page-product > .bg-white > .aspect-square { max-width: 280px; margin: 0 auto 24px; background: #fff; border: 0; border-radius: 0; padding: 20px; }
.ui-page-product h1 { margin-bottom: 6px; }
.ui-page-product h1 + a { font-size: 12px; font-weight: 400; color: var(--muted); }
.ui-page-product .score-glow { width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; }
.ui-page-product .mb-4.pb-4 > .flex:first-child { flex-wrap: wrap; gap: 8px 0; }
.ui-page-product .mb-4.pb-4 > .flex:first-child .text-lg { font-size: 15px; }
.ui-page-product .mb-4.pb-4 > .rounded-xl { background: var(--soft); border: 0; }
.ui-page-product .flex.items-center.justify-between.mb-2 { gap: 12px; padding: 16px 0; border-block: 1px solid var(--line); }
.ui-page-product .flex.items-center.justify-between.mb-2 > a { min-width: 104px; }
.ui-page-product .flex.items-center.justify-between.mb-2 .text-xl { color: var(--ink); font-size: 20px; font-weight: 600; }
main [x-data="skinMatcher()"] { padding: 20px 0 8px; background: transparent; border: 0; }
main [x-data="skinMatcher()"] .grid { gap: 8px; }
main [x-data="skinMatcher()"] button { border-color: var(--line); font-size: 11px; font-weight: 500; }
main [x-data="skinMatcher()"] button:not(.bg-shopee) { background: var(--surface); }
main > .bg-blue-50 { margin: 20px 16px; padding: 16px; border-radius: var(--radius); gap: 10px; box-shadow: none; }
main > .bg-blue-50 > p { min-width: 0; font-size: 11px; }
.ui-page-product > .bg-white:has(> h3) { border-top: 1px solid var(--line); border-radius: 0; margin-top: 20px; padding-top: 20px; }
.ui-page-product [x-data="{ expanded: false }"] > button { width: auto; padding-inline: 14px; background: var(--accent-soft); }
/* Saved products mirror the reference's compact vertical product list. */
.ui-page-favorites .grid-cols-2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ui-page-favorites .grid-cols-2 > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; background: var(--page); padding: 0 44px 18px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.ui-page-favorites .grid-cols-2 > div > a { width: 88px; border-radius: 10px; overflow: hidden; }
.ui-page-favorites .grid-cols-2 > div > .p-2\.5 { padding: 2px 0 0 14px; }
.ui-page-favorites .grid-cols-2 > div > button { right: 0; top: 0; background: var(--soft); }
.ui-page-favorites .grid-cols-2 a.line-clamp-2 { min-height: 0; margin-block: 2px 8px; }
/* Navigation retains all labels; selected icon gets the circular pink accent. */
body > div > nav.fixed { width: 100%; max-width: var(--app-width); bottom: 0; background: var(--page); border: 0; border-radius: 0; box-shadow: 0 -4px 18px rgb(110 45 75 / 3%); padding: 6px 20px calc(6px + env(safe-area-inset-bottom, 0px)); }
body > div > nav.fixed > div { height: 60px; gap: 8px; }
body > div > nav.fixed a { min-height: 52px; justify-content: center; gap: 2px; color: var(--muted); background: transparent; }
body > div > nav.fixed a.text-shopee { color: var(--accent); }
body > div > nav.fixed a span { font-size: 9px; font-weight: 500; }
body > div > nav.fixed a i { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; border-radius: 50%; font-size: 16px; }
body > div > nav.fixed a.text-shopee i { background: var(--button); color: #fff; }
body > div > nav.fixed i::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--nav-icon) center / contain no-repeat; mask: var(--nav-icon) center / contain no-repeat; }
nav.fixed .fa-home { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
nav.fixed .fa-th-large { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
nav.fixed .fa-tags { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 3h8l10 10-8 8L3 11z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1'/%3E%3C/svg%3E"); }
nav.fixed .fa-heart { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z'/%3E%3C/svg%3E"); }
body > div > footer { margin-top: 20px; padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 20px); }
footer a { display: inline-flex; min-height: 44px; align-items: center; }
footer .bg-gray-100 { background: transparent; padding: 0 4px; border-radius: 0; }
footer .text-gray-400 { color: var(--muted); }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 3px; }
/* The search form draws one continuous focus border around both controls. */
main form[action$="search"] input:focus-visible,
main form[action$="search"] button:focus-visible { outline: none !important; box-shadow: none !important; }
main form[action$="search"] button:focus-visible { background: var(--accent-soft) !important; color: var(--accent) !important; }
@media (hover: hover) {
  main a.bg-shopee:hover { background: var(--accent); }
  header a:hover, main a.hover\:text-shopee:hover { color: var(--accent); }
}
@media (prefers-color-scheme: dark) {
  header img.h-5 { filter: brightness(0) saturate(100%) invert(78%) sepia(18%) saturate(851%) hue-rotate(282deg); }
  main img.mix-blend-multiply { mix-blend-mode: normal; border-radius: 8px; }
}
@keyframes ui-shimmer { to { background-position: -200% 0; } }
main img.ui-image-pending, .ui-skeleton-block { background: linear-gradient(100deg, var(--skeleton) 25%, var(--shine) 45%, var(--skeleton) 65%); background-size: 200% 100%; animation: ui-shimmer 1.6s linear infinite; }
.ui-navigation-skeleton { position: fixed; z-index: 45; inset: calc(var(--header-height) + env(safe-area-inset-top, 0px)) 0 calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: var(--app-width); margin-inline: auto; padding: 22px; background: var(--page); pointer-events: none; overflow: hidden; }
.ui-navigation-skeleton[hidden] { display: none; }
.ui-skeleton-block { border-radius: 8px; height: 12px; margin-bottom: 14px; }
.ui-skeleton-block:first-child { width: 58%; height: 22px; margin-bottom: 24px; }
.ui-skeleton-block:nth-child(3n + 2) { height: 150px; border-radius: var(--radius); }
.ui-skeleton-block:nth-child(3n) { width: 78%; }
@media (max-width: 360px) {
  body > div > header > div.flex { padding-inline: 16px; }
  header img.h-5 { width: 88px; }
  header .space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 8px; }
  main > .p-3, main > .p-4, main > .p-6, main > .bg-shopee, main > .sticky { padding-inline: 16px; }
  main .grid { gap: 10px; }
  main .grid-cols-2 > .bg-white > .p-2\.5 { padding: 10px; }
  .ui-page-product > .bg-white:has(> .aspect-square) { padding-inline: 16px; }
  .ui-page-product h1 { font-size: 18px !important; }
  #history-slider > a, #similar-slider > a { width: 140px; min-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
