/* Relooka – design system "magazine déco" ----------------------------------- */
:root {
  --cream: #FBF7F1;
  --sand: #F1E9DD;
  --sand-dark: #E4D8C6;
  --ink: #2A2420;
  --taupe: #7A6B5E;
  --terracotta: #C1653A;
  --terracotta-dark: #A2532E;
  --sage: #8A9A7B;
  --line: #E6DCCD;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(42, 36, 32, .35);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h1 em { font-style: italic; color: var(--terracotta); }
p { margin: 0 0 1em; }
.muted { color: var(--taupe); }
.lead { font-size: 1.15rem; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: .8rem; }
.container { width: min(1140px, 100% - 2rem); margin-inline: auto; padding-inline: 0; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.price { font-weight: 600; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--terracotta); color: var(--white); border: 0; border-radius: 999px;
  padding: .8rem 1.4rem; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--terracotta-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--sand-dark); color: var(--taupe); cursor: not-allowed; }
.btn--large { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--small { padding: .55rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--sand-dark); }
.btn--ghost:hover { background: var(--sand); }
form.button_to { display: inline; }

.test-banner { background: #C0392B; color: #fff; text-align: center; font-weight: 600; font-size: .9rem; padding: .55rem 1rem; }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 241, .85); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; border-radius: 8px 8px 8px 2px; background: linear-gradient(135deg, var(--terracotta), #E4A27F); }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 5rem; padding: 3rem 0; background: var(--sand); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__links a { text-decoration: none; color: var(--taupe); }

.flash { margin: 1rem 0 0; padding: .9rem 1.2rem; border-radius: 12px; font-size: .95rem; }
.flash--alert { background: #FBE9E1; color: #8A3A1B; }
.flash--notice { background: #E8EFE3; color: #3F5232; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 3rem; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.hero__points li { padding-left: 1.6rem; position: relative; }
.hero__points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }

/* Upload form */
.upload { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.upload__title { font-size: 1.6rem; margin-bottom: .2rem; }
.upload__hint { margin-bottom: 1rem; }
.dropzone {
  display: block; position: relative; border: 2px dashed var(--sand-dark); border-radius: 14px; background: var(--cream);
  min-height: 220px; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s;
}
.dropzone.is-over, .dropzone:hover { border-color: var(--terracotta); background: #FFF9F3; }
.dropzone.has-file { border-style: solid; background: var(--ink); }
.dropzone__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: 1rem; pointer-events: none; }
.dropzone__icon { color: var(--terracotta); margin-bottom: .4rem; }
.dropzone__preview { width: 100%; max-height: 360px; object-fit: contain; pointer-events: none; }
.upload__options { margin: 1rem 0; }
.upload__options summary { cursor: pointer; color: var(--taupe); font-size: .9rem; }
.upload__options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.upload__options-grid label, .form-grid label { display: grid; gap: .3rem; font-size: .85rem; color: var(--taupe); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
  font: 400 1rem var(--sans); color: var(--ink); padding: .65rem .8rem; border: 1px solid var(--sand-dark); border-radius: 10px; background: var(--white); width: 100%;
}
select:focus, input:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: transparent; }
.upload .btn { margin-top: .5rem; }
.upload__quota { font-size: .85rem; text-align: center; margin: .8rem 0 0; }

/* Before / after */
.demo { padding: 2rem 0 0; }
.demo__frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.compare { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare.is-dragging { cursor: grabbing; }
.compare img { pointer-events: none; -webkit-user-drag: none; }
.compare img { width: 100%; height: auto; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare__after img { width: 100%; height: 100%; object-fit: cover; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.compare__handle span::before { left: 11px; transform: translateY(-50%) rotate(-45deg); }
.compare__handle span::after { right: 11px; transform: translateY(-50%) rotate(135deg); }
/* Keyboard-only control: visually hidden but focusable */
.compare__range { position: absolute; left: 50%; bottom: 8px; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.compare__range:focus-visible + .compare__label--before { outline: 2px solid var(--terracotta); }
.compare__label { position: absolute; bottom: 14px; padding: .3rem .7rem; border-radius: 999px; background: rgba(42,36,32,.7); color: var(--white); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.compare__label--before { left: 14px; }
.compare__label--after { right: 14px; }
.demo__caption { text-align: center; margin-top: 1rem; font-size: .9rem; }

/* Steps */
.steps { padding: 5rem 0 2rem; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step__num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sand); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 1rem; color: var(--terracotta); }

/* Catalog */
.catalog-peek { padding: 4rem 0 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.product-card__img { aspect-ratio: 1; background: var(--white); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card h4, .product-card p { margin: 0; padding: 0 1rem; }
.product-card h4 { padding-top: .9rem; }
.product-card p.muted { font-size: .8rem; }
.product-card .price { padding-bottom: 1rem; padding-top: .3rem; }

/* Reassurance / FAQ / CTA */
.reassurance { padding: 4rem 0 0; }
.reassurance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.5rem 0; }
.faq { padding: 4rem 0; }
.faq__inner { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--taupe); }
.cta-final { text-align: center; padding: 3rem 0 1rem; }
.cta-final h2 { margin-bottom: 1.5rem; }

/* Result page */
.result { padding: 2.5rem 0; }
.result__head { max-width: 760px; margin-bottom: 1.8rem; }
.result__tip { text-align: center; margin-top: 1rem; font-size: .9rem; }
.progress { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.progress__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.progress__shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%); background-size: 250% 100%; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.progress__panel--center { text-align: center; max-width: 560px; margin: 3rem auto; }
.progress__steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .7rem; }
.progress__steps li { padding-left: 2rem; position: relative; color: var(--taupe); }
.progress__steps li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--sand-dark); }
.progress__steps li.is-done { color: var(--ink); }
.progress__steps li.is-done::before { background: var(--sage); border-color: var(--sage); }
.progress__steps li.is-current { color: var(--ink); font-weight: 600; }
.progress__steps li.is-current::before { border-color: var(--terracotta); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.basket { margin-top: 3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.basket__intro { max-width: 720px; margin-bottom: 1.5rem; }
.basket__list { display: grid; gap: 1rem; }
.basket__item { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.basket__img { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--sand); }
.basket__img img { width: 100%; height: 100%; object-fit: cover; }
.basket__body h3 { font-size: 1.1rem; margin-bottom: .1rem; }
.basket__body p { margin: 0; font-size: .9rem; }
.basket__note { margin-top: .3rem !important; }
.qty { font-family: var(--sans); font-size: .85rem; color: var(--terracotta); font-weight: 600; margin-left: .3rem; }
.basket__footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.basket__footer > div:first-child { display: grid; font-size: .9rem; }
.basket__total { font-family: var(--serif); font-size: 2rem; }
.basket__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Checkout */
.checkout { padding: 2.5rem 0; }
.checkout__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.checkout__aside { position: sticky; top: 84px; }
.checkout__aside img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: .8rem; }
.checkout__form fieldset { border: 0; padding: 0; margin: 1.5rem 0; }
.checkout__form legend { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .8rem; }
.checkout__items { display: grid; gap: .6rem; }
.checkout__item { display: grid; grid-template-columns: auto 64px 1fr auto; gap: 1rem; align-items: center; padding: .7rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.checkout__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.checkout__item-name small { display: block; }
.checkout__item input { width: 18px; height: 18px; accent-color: var(--terracotta); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-grid .span-2 { grid-column: span 2; }
.checkout__soon { font-size: .9rem; margin-top: .8rem; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem; }
.summary__row { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.summary__row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.summary__row small { display: block; }
.summary__row--muted, .summary__row--total { grid-template-columns: 1fr auto; }
.summary__row--muted { color: var(--taupe); }
.summary__row--total { border: 0; font-family: var(--serif); font-size: 1.4rem; }
.summary__address { margin-bottom: 1.5rem; }
.page { padding: 3rem 0; }
.page__narrow { max-width: 720px; }
.page h3 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .progress, .checkout__grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps__grid, .reassurance__grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav a:not(.btn) { display: none; }
  .checkout__aside { position: static; }
}
@media (max-width: 520px) {
  .basket { padding: 1.2rem; }
  .basket__item { grid-template-columns: 72px 1fr; }
  .basket__item .price { grid-column: 2; }
  .basket__img { width: 72px; height: 72px; }
  .form-grid, .upload__options-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .upload { padding: 1.2rem; }
}

/* Admin */
.admin__main { padding: 1.5rem 0 4rem; }
.admin__filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.admin__filters input[type="text"], .admin__filters select { width: auto; }
.admin__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.admin__card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .85rem; }
.admin__card--approved { border-color: var(--sage); }
.admin__card--rejected { opacity: .55; }
.admin__img { aspect-ratio: 1; background: var(--sand); }
.admin__img img { width: 100%; height: 100%; object-fit: cover; }
.admin__body { padding: .6rem; display: grid; gap: .2rem; }
.admin__actions { display: flex; gap: .4rem; margin-top: .4rem; }
.admin__actions .btn { padding: .35rem .7rem; font-size: .75rem; }
.admin__pager { display: flex; gap: 1rem; justify-content: center; margin: 2rem 0; }
.admin__detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.admin__detail-img { border-radius: 10px; margin-bottom: .6rem; }
.admin__dl { display: grid; grid-template-columns: 120px 1fr; gap: .3rem 1rem; font-size: .9rem; }
.admin__dl dt { color: var(--taupe); }
.admin__dl dd { margin: 0; }
.admin__form { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.admin__form select, .admin__form input { width: auto; }
.admin__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin__table th, .admin__table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
pre { white-space: pre-wrap; font-size: .8rem; background: var(--white); padding: 1rem; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 900px) { .admin__detail { grid-template-columns: 1fr; } }

/* Curation swipe */
.curate__head { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
.curate__head h1 { margin: 0; }
.curate__card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; }
.curate__images { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.curate__main { grid-column: span 3; border-radius: 12px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.curate__thumb { border-radius: 8px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.curate__actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
@media (max-width: 900px) { .curate__card { grid-template-columns: 1fr; } }

/* Taste swipe */
.swipe { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.swipe__head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.swipe__remember { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-top: 1rem; font-size: .95rem; }
.swipe__legend { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.swipe__legend li { display: flex; align-items: center; gap: .6rem; }
.swipe__dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .9rem; background: var(--white); box-shadow: var(--shadow); }
.swipe__dot--like { color: #fff; background: var(--terracotta); }
.swipe__dot--nope { color: #8A3A1B; }
.swipe__stage { position: relative; }
.swipe__deck { position: relative; aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.swipe__card { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); cursor: grab; will-change: transform; }
.swipe__card:active { cursor: grabbing; }
.swipe__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.swipe__card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(30, 24, 20, .75)); color: #fff; pointer-events: none; }
.swipe__card-body h3 { color: #fff; margin: 0 0 .1rem; font-size: 1.3rem; }
.swipe__card-body p { margin: 0; opacity: .85; font-size: .9rem; }
.swipe__stamp { position: absolute; top: 22px; padding: .35rem .8rem; border: 3px solid; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; opacity: 0; transform: rotate(-12deg); transition: opacity .15s; pointer-events: none; }
.swipe__stamp--like { left: 22px; color: #6FA37A; border-color: #6FA37A; }
.swipe__stamp--nope { right: 22px; color: #D9534F; border-color: #D9534F; transform: rotate(12deg); }
.swipe__card.is-liking .swipe__stamp--like, .swipe__card.is-liked .swipe__stamp--like { opacity: 1; }
.swipe__card.is-noping .swipe__stamp--nope, .swipe__card.is-noped .swipe__stamp--nope { opacity: 1; }
.swipe__actions { display: flex; align-items: center; justify-content: center; gap: 1.6rem; margin-top: 1.2rem; }
.swipe__btn { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 1.6rem; cursor: pointer; box-shadow: var(--shadow); background: var(--white); transition: transform .15s; }
.swipe__btn:hover { transform: scale(1.06); }
.swipe__btn--like { color: #fff; background: var(--terracotta); }
.swipe__btn--nope { color: #8A3A1B; }
.swipe__count { font-family: var(--serif); font-size: 1.2rem; min-width: 4rem; text-align: center; }
.swipe__skip { text-align: center; margin-top: .8rem; font-size: .9rem; }
.swipe__skip a { color: var(--taupe); }
.swipe__done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: var(--cream); }
.swipe__done[hidden] { display: none; }
.swipe.is-finished .swipe__actions, .swipe.is-finished .swipe__skip { visibility: hidden; }

/* Styles gallery on the home page */
.styles-peek { padding: 4rem 0 1rem; }
.styles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; }
.style-card { margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.style-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.style-card figcaption { padding: .7rem .9rem .9rem; display: grid; gap: .1rem; font-size: .9rem; }
.style-card figcaption .muted { font-size: .8rem; }
@media (max-width: 900px) {
  .swipe { grid-template-columns: 1fr; gap: 1.5rem; }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
}
