/*
 * Magia Flory storefront visual refresh — 2026-08-02.
 * This file is intentionally loaded last. It restores the lighter editorial
 * language of the original HTML prototype without changing the brand palette.
 */

:root {
  --refresh-paper: #f8f3eb;
  --refresh-paper-strong: #efe7db;
  --refresh-ink: #293426;
  --refresh-green: #36552b;
  --refresh-green-soft: #dfe8d9;
  --refresh-line: rgba(54, 85, 43, .16);
  --refresh-radius: 26px;
  --refresh-radius-sm: 18px;
  --refresh-shadow: 0 18px 50px rgba(46, 54, 39, .08);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { image-rendering: auto; }

/* Calm motion. */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible,
[data-reveal].is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .12s; }

.button,
.category-card,
.product-card,
.article-card,
.review-feed article,
.partner-card,
.franchise-card {
  transition: transform .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease;
}
.button:hover { transform: translateY(-2px); }

/* 1. Home category section: remove the arch / memorial-stone silhouette. */
.categories-section--tz { background: linear-gradient(180deg, var(--refresh-paper), #f4eee5); }
.categories-section--tz .section-head { margin-bottom: 28px; }
.categories-section--tz .section-head p { max-width: 620px; color: var(--muted); }
.category-grid--tz {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, .72fr)) !important;
  grid-template-rows: repeat(2, minmax(290px, 1fr)) !important;
  gap: 18px !important;
}
.category-grid--tz .category-card,
.category-grid--tz .category-card--large {
  position: relative;
  min-height: 0 !important;
  overflow: hidden;
  border: 1px solid var(--refresh-line) !important;
  border-radius: var(--refresh-radius) !important;
  box-shadow: none !important;
  isolation: isolate;
}
.category-grid--tz .category-card--large { grid-row: 1 / span 2; }
.category-grid--tz .category-card::before,
.category-grid--tz .category-card::after,
.category-grid--tz .category-card__art::before,
.category-grid--tz .category-card__art::after { display: none !important; content: none !important; }
.category-grid--tz .category-card > .category-card__copy,
.category-grid--tz .category-card--large > .category-card__copy {
  position: relative !important;
  z-index: 3;
  min-height: 0 !important;
  padding: 26px 28px 12px !important;
  background: none !important;
}
.category-grid--tz .category-card h3,
.category-grid--tz .category-card--large h3 {
  max-width: 100% !important;
  margin: 8px 0 0 !important;
  font-size: clamp(2rem, 2.55vw, 3.55rem) !important;
  line-height: .98 !important;
  letter-spacing: -.025em;
}
.category-grid--tz .category-card--large h3 { font-size: clamp(3rem, 4.25vw, 5.15rem) !important; }
.category-grid--tz .category-card p { max-width: 430px !important; font-size: .96rem !important; }
.category-grid--tz .category-card > .category-card__art,
.category-grid--tz .category-card--large > .category-card__art {
  position: absolute !important;
  inset: 38% 0 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden;
}
.category-grid--tz .category-card--large > .category-card__art { inset: 35% 0 0 !important; }
.category-grid--tz .category-card .category-card__category-image,
.category-grid--tz .category-card--large .category-card__category-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.01) !important;
  filter: saturate(.9) contrast(.98);
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease !important;
}
.category-grid--tz .category-card--large .category-card__category-image { object-position: center 58% !important; }
.category-grid--tz .category-card:hover { transform: translateY(-5px); border-color: rgba(54,85,43,.28) !important; box-shadow: var(--refresh-shadow) !important; }
.category-grid--tz .category-card:hover .category-card__category-image { transform: scale(1.045) !important; filter: saturate(1) contrast(1); }

/* 2–3, 6. Founders: two honest photographs, no baked white strips or empty oval. */
.founder-duo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--refresh-line);
  border-radius: 32px;
  background: linear-gradient(145deg, #e6ecdf, #f4ece1);
  box-shadow: var(--refresh-shadow);
}
.founder-duo__portrait {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ddd;
}
.founder-duo__portrait:nth-child(2) { transform: translateY(22px); }
.founder-duo__portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.founder-duo__portrait--anna img { object-position: center 35% !important; }
.founder-duo__portrait--valeria img { object-position: center 42% !important; }
.founder-duo__portrait figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  color: var(--refresh-ink);
  border-radius: 999px;
  background: rgba(250,247,241,.9);
  backdrop-filter: blur(8px);
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.founder-duo__note {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 4;
  max-width: 170px;
  padding: 10px 13px;
  color: #fff;
  border-radius: 14px;
  background: rgba(45,68,35,.9);
  font-family: var(--ui);
  font-size: .73rem;
  line-height: 1.35;
}
.manifesto-section--compact .manifesto-visual,
.about-collage--shared,
.founders-common-photo > img { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
.about-hero--tz .about-hero__grid { gap: clamp(36px, 6vw, 96px); }
.about-hero--tz .founder-duo { max-width: 620px; margin-left: auto; }
.about-hero--tz .founder-duo__portrait img { aspect-ratio: 4 / 5.4; }
.founders-common-photo { grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr) !important; }
.founders-common-photo .founder-duo { align-self: start; }

/* 5. Real catalog, rebuilt around the original editorial card rhythm. */
.catalog-v2 { padding-top: 42px; }
.catalog-v2__category-strip {
  display: flex;
  gap: 10px;
  margin: -4px 0 30px;
  padding: 6px 0 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.catalog-v2__category-strip a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 9px 15px;
  color: var(--refresh-ink);
  border: 1px solid var(--refresh-line);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  font-family: var(--ui);
  font-size: .82rem;
  font-weight: 700;
}
.catalog-v2__category-strip a:hover,
.catalog-v2__category-strip a.is-active { color: #fff; background: var(--refresh-green); border-color: var(--refresh-green); }
.catalog-v2__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; align-items: start; }
.catalog-v2__filter {
  position: sticky;
  top: 116px;
  padding: 20px;
  border: 1px solid var(--refresh-line);
  border-radius: 22px;
  background: rgba(250,247,241,.78);
  backdrop-filter: blur(12px);
}
.catalog-v2__filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.catalog-v2__filter-head h2 { margin: 0; font-size: 1.45rem; }
.catalog-v2__filter-close { display: none; border: 0; background: transparent; }
.catalog-v2__filter details { border-top: 1px solid var(--refresh-line); }
.catalog-v2__filter details:first-of-type { border-top: 0; }
.catalog-v2__filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 800;
}
.catalog-v2__filter summary::-webkit-details-marker { display: none; }
.catalog-v2__filter label { display: grid; gap: 7px; margin-bottom: 12px; color: var(--muted); font-family: var(--ui); font-size: .76rem; font-weight: 700; }
.catalog-v2__filter input,
.catalog-v2__filter select,
.catalog-v2__toolbar input,
.catalog-v2__toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--refresh-ink);
  border: 1px solid var(--refresh-line);
  border-radius: 12px;
  background: #fff;
}
.catalog-v2__filter-actions { display: grid; gap: 8px; margin-top: 14px; }
.catalog-v2__main { min-width: 0; }
.catalog-v2__toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}
.catalog-v2__toolbar label { display: grid; gap: 7px; font-family: var(--ui); font-size: .75rem; font-weight: 800; }
.catalog-v2__mobile-filter { display: none; }
.catalog-v2__count { margin: 0 0 20px; color: var(--muted); font-family: var(--ui); font-size: .88rem; }
.commerce-product-grid--editorial { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 30px 18px !important; }
.product-card--editorial {
  position: relative;
  min-width: 0;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.product-card--editorial:hover { transform: translateY(-5px); }
.product-card--editorial .product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1.04;
  border: 1px solid rgba(54,85,43,.1);
  border-radius: 24px;
  background: linear-gradient(145deg, #eee8df, #f9f5ee);
}
.product-card--editorial .product-card__media::after { display: none !important; content: none !important; }
.product-card--editorial .product-card__media > img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: transform .55s cubic-bezier(.2,.7,.2,1) !important;
}
.product-card--editorial:hover .product-card__media > img { transform: scale(1.035) !important; }
.product-card--editorial .product-card__content { padding: 15px 3px 0 !important; background: transparent !important; }
.product-card--editorial .product-type {
  margin: 0 0 7px;
  color: var(--green);
  font-family: var(--ui);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-card--editorial h3 { min-height: 2.12em; margin: 0 0 7px; font-size: clamp(1.28rem, 1.65vw, 1.75rem); line-height: 1.04; }
.product-card--editorial .latin { min-height: 1.4em; margin: 0; color: var(--muted); font-size: .83rem; font-style: italic; }
.product-card--editorial .product-card__bottom { align-items: center; margin-top: 15px; }
.product-card--editorial .product-card__bottom strong { font-family: var(--ui); font-size: .9rem; }
.product-card--editorial .round-add {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: none;
}
.product-card--editorial .wishlist-button,
.product-card--editorial .product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--refresh-green);
  border: 1px solid rgba(54,85,43,.18);
  border-radius: 50%;
  background: rgba(251,247,240,.9);
  backdrop-filter: blur(8px);
}
.product-card--editorial .product-card__wishlist svg { width: 20px; height: 20px; }
.product-card--editorial .badge { top: 13px; left: 13px; }
.product-card--editorial .stock-note { display: inline-flex; margin-left: 8px; color: #9a5a32; font-family: var(--ui); font-size: .68rem; }

/* Public landing pages: better rhythm and restrained animation. */
.partnership-hero,
.franchise-hero,
.page-partner-program main > section:first-child,
.page-franchise main > section:first-child { overflow: hidden; }
.partner-card:hover,
.franchise-card:hover { transform: translateY(-5px); box-shadow: var(--refresh-shadow); }

/* 4 + 7. Footer cleanup and recognisable social marks. */
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .socials a {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.site-footer .socials a:hover { color: var(--deep); background: #fff; transform: translateY(-3px); }
.site-footer .socials svg { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.site-footer .footer-bottom {
  display: flex !important;
  min-height: 70px;
  align-items: center;
  justify-content: center !important;
  text-align: center;
}
.site-footer .footer-bottom > *:not(.footer-copyright) { display: none !important; }
.site-footer .footer-copyright { color: rgba(255,255,255,.65); font-family: var(--ui); font-size: .75rem; }

@media (max-width: 1100px) {
  .category-grid--tz { grid-template-columns: repeat(2, minmax(0,1fr)) !important; grid-template-rows: auto !important; }
  .category-grid--tz .category-card--large { grid-row: auto; grid-column: 1 / -1; min-height: 540px !important; }
  .category-grid--tz .category-card { min-height: 340px !important; }
  .catalog-v2__layout { grid-template-columns: 230px minmax(0,1fr); gap: 22px; }
  .commerce-product-grid--editorial { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

@media (max-width: 760px) {
  .reveal, [data-reveal] { transform: translateY(12px); }
  .category-grid--tz { grid-template-columns: 1fr !important; }
  .category-grid--tz .category-card--large { grid-column: auto; min-height: 500px !important; }
  .category-grid--tz .category-card { min-height: 360px !important; }
  .category-grid--tz .category-card > .category-card__art { inset: 42% 0 0 !important; }
  .founder-duo { gap: 10px; padding: 10px; border-radius: 24px; }
  .founder-duo__portrait { border-radius: 18px; }
  .founder-duo__portrait:nth-child(2) { transform: translateY(12px); }
  .founder-duo__note { display: none; }
  .about-hero--tz .about-hero__grid { min-height: auto !important; }
  .founders-common-photo { grid-template-columns: 1fr !important; }
  .catalog-v2__layout { display: block; }
  .catalog-v2__filter {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 220;
    width: min(360px, 92vw);
    height: 100dvh;
    overflow-y: auto;
    border-radius: 24px 0 0 24px;
    transform: translateX(105%);
    transition: transform .28s ease;
  }
  .catalog-v2__filter.is-open { transform: translateX(0); box-shadow: -20px 0 70px rgba(20,30,16,.22); }
  .catalog-v2__filter-close { display: grid; width: 38px; height: 38px; place-items: center; }
  .catalog-v2__toolbar { grid-template-columns: 1fr auto; }
  .catalog-v2__toolbar .catalog-v2__sort { grid-column: 1 / -1; }
  .catalog-v2__mobile-filter { display: inline-flex; }
  .commerce-product-grid--editorial { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 24px 12px !important; }
  .product-card--editorial h3 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .commerce-product-grid--editorial { grid-template-columns: 1fr !important; }
  .product-card--editorial .product-card__media { aspect-ratio: 1 / .94; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, [data-reveal] { opacity: 1; transform: none; }
}
