/* Theme families — full-page tonality for "Poder da Fragrância" */

body {
  --theme-glow: rgba(201, 162, 74, 0.18);
  --theme-surface: rgba(10, 10, 10, 0.72);
  transition: background-color 0.55s ease, color 0.45s ease;
}

body.is-theme-mode {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82)),
    var(--theme-bg-image, none) center / cover fixed no-repeat,
    var(--bg);
}

body.is-theme-mode .app {
  background: transparent;
}

body.is-theme-mode .topbar,
body.is-theme-mode .catalog,
body.is-theme-mode .category-block,
body.is-theme-mode .desired,
body.is-theme-mode .benefits,
body.is-theme-mode .cats,
body.is-theme-mode .cat,
body.is-theme-mode .foot {
  background: var(--theme-surface) !important;
  backdrop-filter: blur(10px);
  border-color: var(--line) !important;
}

body.is-theme-mode .product {
  background: color-mix(in srgb, var(--card) 85%, transparent);
  border-color: var(--line);
}

body.is-theme-mode .hero-mock {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 45%, transparent 70%),
    var(--theme-bg-image, none) right center / cover no-repeat,
    var(--bg) !important;
}

body.is-theme-mode .hero-mock__art {
  opacity: 0.15;
}

/* Families */
body[data-theme="praia"] {
  --bg: #071821;
  --bg-2: #0c2430;
  --gold: #e8c36a;
  --gold-soft: #ffe7a8;
  --text: #f4fbff;
  --muted: rgba(228, 244, 255, 0.78);
  --line: rgba(120, 196, 220, 0.45);
  --card: #102833;
  --theme-glow: rgba(64, 180, 210, 0.28);
}

body[data-theme="intenso"] {
  --bg: #050304;
  --bg-2: #120906;
  --gold: #ffb000;
  --gold-soft: #ffd56a;
  --text: #fff4e6;
  --muted: rgba(255, 230, 190, 0.75);
  --line: rgba(255, 140, 40, 0.45);
  --card: #1a0d08;
  --theme-glow: rgba(255, 120, 20, 0.35);
}

body[data-theme="floral"] {
  --bg: #1a0c12;
  --bg-2: #2a121c;
  --gold: #d4a0a8;
  --gold-soft: #f0c8d0;
  --text: #fff5f7;
  --muted: rgba(255, 230, 236, 0.78);
  --line: rgba(220, 140, 160, 0.42);
  --card: #311722;
  --theme-glow: rgba(220, 120, 150, 0.3);
}

body[data-theme="gourmand"] {
  --bg: #140c08;
  --bg-2: #22140d;
  --gold: #d4a15a;
  --gold-soft: #f0c98a;
  --text: #fff6ea;
  --muted: rgba(255, 232, 205, 0.76);
  --line: rgba(190, 130, 70, 0.45);
  --card: #2a1810;
  --theme-glow: rgba(180, 110, 50, 0.32);
}

body[data-theme="oriental"] {
  --bg: #080605;
  --bg-2: #14100c;
  --gold: #c9a24a;
  --gold-soft: #e6c76a;
  --text: #f5efe3;
  --muted: rgba(245, 239, 227, 0.72);
  --line: rgba(201, 162, 74, 0.4);
  --card: #1a1510;
  --theme-glow: rgba(201, 162, 74, 0.28);
}

body[data-theme="fresco"] {
  --bg: #07140f;
  --bg-2: #0e221a;
  --gold: #8fd0a8;
  --gold-soft: #c9efd6;
  --text: #f2fff7;
  --muted: rgba(220, 245, 230, 0.76);
  --line: rgba(110, 190, 140, 0.42);
  --card: #13281e;
  --theme-glow: rgba(90, 190, 140, 0.28);
}

body[data-theme="amadeirado"] {
  --bg: #100c08;
  --bg-2: #1c150f;
  --gold: #b8894a;
  --gold-soft: #e0b874;
  --text: #f7efe3;
  --muted: rgba(235, 220, 200, 0.74);
  --line: rgba(160, 110, 60, 0.42);
  --card: #241910;
  --theme-glow: rgba(150, 95, 40, 0.3);
}

/* Product power button */
.product__power {
  margin-top: 0.55rem;
  width: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), transparent;
  color: var(--gold-soft);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.4rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.product__power:hover {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border-color: var(--gold);
  color: #fff;
}

.product__tema {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Immersion bar */
.theme-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.is-theme-mode .theme-bar {
  display: flex;
}

.theme-bar__copy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.theme-bar__copy span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.theme-bar__actions button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-soft);
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-bar__actions button:hover {
  border-color: var(--gold);
  color: #fff;
}

/* Theme chooser strip */
.theme-strip {
  padding: 2rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(201, 162, 74, 0.16);
}

.theme-strip__head {
  max-width: 1400px;
  margin: 0 auto 1rem;
}

.theme-strip__head h2 {
  margin: 0;
  font-family: var(--display);
  color: var(--gold-soft);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-strip__head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.theme-strip__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
}

@media (max-width: 1000px) {
  .theme-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .theme-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.theme-chip {
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--text);
  padding: 1.1rem 0.75rem 0.85rem;
  text-align: left;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  position: relative;
  overflow: hidden;
}

.theme-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.82)),
    var(--chip-photo, none) center / cover no-repeat;
}

.theme-chip strong,
.theme-chip span,
.theme-chip em {
  position: relative;
  z-index: 1;
}

.theme-chip strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.theme-chip span {
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
  text-transform: none;
}

.theme-chip em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.theme-chip.is-active {
  outline: 1px solid var(--gold);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent);
}

.theme-products {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.theme-products__head {
  max-width: 1400px;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.theme-products__head h2 {
  margin: 0;
  font-family: var(--display);
  color: var(--gold-soft);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-products__head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.theme-products .product-row {
  max-width: 1400px;
  margin: 0 auto;
}

body.is-theme-mode .hero-mock {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 70%),
    var(--theme-bg-image, none) center / cover no-repeat,
    var(--bg) !important;
  min-height: min(72vh, 640px);
}

body.is-theme-mode .hero-mock__art {
  display: none;
}
