/* D.LUMUS · Verde musgo / editorial minimalista */
:root {
  --green: #293526;
  --moss: #46503a;
  --paper: #f8f5ef;
  --sand: #eae3d6;
  --gold: #ae9367;
  --ink: #293526;
  --muted: #6b7063;
  --line: #29352626;
  --hero-position: 35% center
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.7 Arial, Helvetica, sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  cursor: pointer
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px
}

[hidden] {
  display: none !important
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400
}

h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -1.3px;
  margin-bottom: 24px
}

em {
  font-weight: 400
}

img {
  max-width: 100%
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2.6px;
  line-height: 1.8;
  margin-bottom: 22px
}

.dl-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 30;
  background: var(--paper);
  padding: 15px
}

.skip-link:focus {
  top: 15px
}

/* Cabeçalho sobre o banner. Logo original ganha uma base clara discreta. */
header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 26px 6%;
  color: var(--paper);
  border-bottom: 1px solid #f8f5ef24
}

.brand {
  display: inline-block;
  font: 32px Georgia, serif;
  letter-spacing: 1px
}

.brand span {
  display: block;
  font: 8px Arial, sans-serif;
  letter-spacing: 2.7px;
  margin-top: 9px
}

.brand-image {
  display: block;
  width: 150px;
  height: 68px;
  object-fit: contain;
  background: var(--paper);
  padding: 6px 10px
}

nav {
  display: flex;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 1px
}

nav a {
  padding: 12px 0;
  border-bottom: 1px solid transparent
}

nav a:hover {
  border-color: var(--gold)
}

/* Foto em tela cheia, com área de leitura à direita. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 760px;
  min-height: min(900px, 100svh);
  background: var(--green);
  color: var(--paper)
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 50%;
  margin-left: 50%;
  padding: 170px 10% 90px 2%;
}

.hero h1 {
  font-size: clamp(48px, 5.3vw, 80px);
  line-height: 1.06;
  letter-spacing: -2px;
  margin: 0 0 28px
}

.hero h1 em {
  font-style: normal
}

.hero-copy>p:not(.eyebrow) {
  max-width: 370px;
  font-size: 14px;
  line-height: 1.9;
  color: #f8f5efd4
}

.hero .hero-media {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, #5b644b 0%, #35402c 45%, #192216 100%)
}

.hero-media:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #18201115 15%, #19221655 45%, #192216cc 100%)
}

.hero-media>img {
  object-position: var(--hero-position)
}

.hero-media>.photo-placeholder {
  left: 9%;
  right: auto;
  top: 48%;
  color: #eae3d645
}

.hero-foot {
  display: none
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 17px 25px;
  margin-top: 18px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 1px;
  transition: background .25s, transform .25s
}

.button:hover {
  background: var(--moss);
  transform: translateY(-2px)
}

.hero .button {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--green)
}

.hero .button:hover {
  background: var(--paper)
}

.button:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none
}

.outline {
  background: transparent;
  color: var(--green)
}

.outline:hover {
  color: var(--paper)
}

.image-slot {
  position: relative;
  overflow: hidden;
  background: var(--sand)
}

.image-slot>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s, transform .7s
}

.image-slot>img.is-loaded {
  opacity: 1
}

.has-photo>.photo-placeholder,
.has-photo>.category-symbol,
.has-photo>.product-placeholder,
.essence-art.has-photo>p,
.essence-art.has-photo>.big-flower {
  visibility: hidden
}

.photo-placeholder {
  position: absolute;
  inset: 44% 5% auto;
  text-align: center;
  font: 32px Georgia, serif;
  letter-spacing: 4px;
  color: #29352670
}

.photo-placeholder small {
  display: block;
  font: 8px Arial, sans-serif;
  letter-spacing: 2px;
  margin-top: 15px
}

.values {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 23px 6%;
  background: var(--sand);
  font-size: 10px;
  letter-spacing: 1px
}

.values b {
  color: var(--gold);
  font-weight: 400
}

.values .dl-icon {
  width: 11px;
  height: 11px
}

.collection {
  padding: 85px 6% 95px;
  max-width: 1440px;
  margin: auto
}

.section-heading {
  text-align: center;
  margin-bottom: 40px
}

.section-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 15px
}

.section-heading h2 {
  margin-bottom: 15px
}

.section-heading>p {
  color: var(--muted);
  font-size: 13px
}

.section-heading>p br {
  display: none
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px
}

.category-tabs button {
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  background: #fffaf4;
  color: var(--ink);
  text-align: left;
  transition: border-color .25s
}

.category-tabs button:hover,
.category-tabs button[aria-selected=true] {
  border-color: var(--gold)
}

.category-photo {
  display: block;
  aspect-ratio: 4/3;
  background: #ded8ca
}

.category-tabs button:nth-child(2) .category-photo {
  background: #e5ddcf
}

.category-tabs button:nth-child(3) .category-photo {
  background: #d8d9cb
}

.category-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8a8c79
}

.category-symbol .dl-icon {
  width: 44px;
  height: 44px;
  stroke-width: 1
}

.category-tabs button:hover img {
  transform: scale(1.035)
}

.category-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px;
  font: clamp(19px, 2vw, 27px) Georgia, serif
}

.category-name small {
  color: var(--gold);
  font: 22px Arial, sans-serif
}

.catalog-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 45px 0 25px;
  font-size: 13px;
  color: var(--muted)
}

.catalog-caption small {
  font-size: 9px;
  letter-spacing: 1px
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  scroll-margin-top: 30px
}

.product-picture {
  aspect-ratio: 1/1
}

.tone-1 {
  background: #dce0d3
}

.tone-2 {
  background: #e6ded1
}

.product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 22px Georgia, serif;
  letter-spacing: 2px;
  color: #68715e
}

.product-placeholder small {
  font: 8px Arial, sans-serif;
  letter-spacing: 1.7px;
  margin-top: 15px
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 19px 0 8px
}

.product-top h3 {
  font-size: 23px;
  margin: 0
}

.product-top button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font-size: 25px
}

.product-top button:hover {
  background: var(--green);
  color: var(--paper)
}

.product-description {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px
}

.price {
  font-size: 14px
}

.essence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green);
  color: var(--paper)
}

.essence-art {
  min-height: 540px;
  background: #bec2ac;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--green);
  text-align: center
}

.essence-art>p {
  font: 38px/1.25 Georgia, serif;
  margin: 25px
}

.big-flower .dl-icon {
  width: 40px;
  height: 40px
}

.line-circle {
  display: none
}

.essence-copy {
  padding: 80px 14%;
  align-self: center
}

.essence-copy .eyebrow {
  color: #d1c09f
}

.essence-copy>p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: #eae3d6cf
}

.essence-copy em {
  color: #d1c09f
}

.text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ae936780;
  padding: 15px 0;
  margin-top: 25px;
  font-size: 12px
}

.instagram {
  padding: 90px 9%;
  max-width: 1440px;
  margin: auto
}

.instagram-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center
}

.instagram-copy>p {
  font-size: 13px;
  color: var(--muted)
}

.instagram-photo {
  aspect-ratio: 1/1
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  padding: 70px 9%;
  background: var(--sand)
}

.faq>div>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px
}

.faq h2 {
  font-size: 38px
}

.faq-list details {
  border-bottom: 1px solid var(--line)
}

summary {
  cursor: pointer;
  padding: 21px 26px 21px 0;
  font-size: 14px
}

details p {
  color: var(--muted);
  font-size: 13px;
  padding-right: 20px
}

.footer {
  padding: 60px 6% 25px;
  background: var(--green);
  color: var(--paper)
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px
}

.footer-brand>p {
  font-size: 12px;
  line-height: 1.8;
  color: #eae3d6b5;
  margin: 22px 0
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.footer-column h3 {
  font-size: 23px;
  margin-bottom: 8px
}

.footer-column a {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 18px
}

.footer-column a:hover {
  color: #d1c09f
}

.footer-message {
  font-size: 11px;
  color: #eae3d6b5
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #f8f5ef22;
  font-size: 10px;
  color: #eae3d6b5
}

/* Sacola: mantém interação nativa de dialog, teclado e foco. */
.floating-bag {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--paper);
  border: 1px solid var(--gold);
  padding: 14px 20px;
  border-radius: 40px;
  box-shadow: 0 5px 25px #0002;
  font-size: 12px
}

#bagCount {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--green)
}

dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 460px;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 28px;
  border: 0;
  background: var(--paper);
  color: var(--green)
}

dialog[open] {
  display: flex;
  flex-direction: column
}

dialog::backdrop {
  background: #18201180;
  backdrop-filter: blur(3px)
}

body:has(dialog[open]) {
  overflow: hidden
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px
}

.cart-header h2 {
  font-size: 35px;
  margin: 8px 0
}

.cart-header .eyebrow {
  margin: 0;
  font-size: 9px
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font-size: 25px
}

#cartItems {
  flex: 1;
  overflow-y: auto;
  min-height: 70px
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 70px 10px
}

.cart-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line)
}

.cart-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.cart-row h3 {
  font-size: 20px;
  margin-bottom: 6px
}

.cart-row small {
  color: var(--muted)
}

.quantity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px
}

.quantity button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green)
}

.quantity .remove {
  margin-left: auto;
  width: auto;
  border: 0;
  font-size: 11px;
  text-decoration: underline
}

.cart-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 18px
}

.cart-bottom p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0
}

.cart-bottom .button {
  width: 100%;
  gap: 12px
}

.continue {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: 0;
  color: var(--green);
  font-size: 12px
}

#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%, 15px);
  z-index: 10;
  background: var(--green);
  color: var(--paper);
  padding: 15px 25px;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  font-size: 12px
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

@media(min-width:1600px) {
  .hero-copy {
    padding-right: 15%
  }
}

@media(max-width:900px) {
  header {
    padding: 22px 5%
  }

  nav {
    gap: 20px
  }

  .hero-copy {
    width: 55%;
    margin-left: 45%;
    padding: 165px 6% 75px 2%
  }

  .hero h1 {
    font-size: 54px
  }

  .hero {
    min-height: 740px
  }

  .values {
    gap: 22px
  }

  .values span:last-child,
  .values b:last-of-type {
    display: none
  }

  .category-tabs {
    gap: 16px
  }

  .category-name {
    padding: 18px 14px
  }

  .essence-copy {
    padding: 50px 9%
  }

  .instagram-layout {
    gap: 40px
  }

  .faq {
    gap: 30px;
    padding: 60px 6%
  }

  .footer-main {
    gap: 25px
  }

  .products {
    gap: 18px
  }
}

@media(max-width:600px) {
  header {
    padding: 20px 6% 14px;
    flex-direction: column;
    gap: 15px
  }

  .brand {
    font-size: 28px
  }

  .brand-image {
    width: 135px;
    height: 58px
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px
  }

  nav a {
    padding: 5px 0
  }

  .hero {
    min-height: 800px;
    align-items: flex-start
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 185px 7% 270px
  }

  .hero h1 {
    font-size: clamp(43px, 11.2vw, 65px);
    letter-spacing: -1.5px;
    max-width: 420px
  }

  .hero-copy>p:not(.eyebrow) {
    font-size: 13px;
    max-width: 320px
  }

  .hero-copy .eyebrow {
    font-size: 9px
  }

  .hero-media>img {
    object-position: 30% center
  }

  .hero-media:after {
    background: linear-gradient(180deg, #192216d9 0%, #192216a8 50%, #19221615 100%)
  }

  .hero-media>.photo-placeholder {
    top: auto;
    bottom: 80px;
    left: 0;
    right: 0;
    font-size: 26px
  }

  .hero .button {
    padding: 16px 22px;
    font-size: 10px
  }

  .values {
    gap: 15px;
    padding: 20px 5%;
    font-size: 9px;
    letter-spacing: .2px
  }

  .values span:nth-of-type(3),
  .values b:nth-of-type(2) {
    display: none
  }

  .collection {
    padding: 55px 6%
  }

  .section-heading h2 {
    font-size: 33px
  }

  .section-heading>p {
    font-size: 12px
  }

  .category-tabs {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .category-photo {
    aspect-ratio: 4/3
  }

  .category-name {
    font-size: 25px;
    padding: 20px
  }

  .catalog-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 35px
  }

  .products {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .product-top h3 {
    font-size: 25px
  }

  .essence {
    grid-template-columns: 1fr
  }

  .essence-art {
    min-height: 0;
    aspect-ratio: 1/1
  }

  .essence-copy {
    padding: 45px 8%
  }

  .instagram {
    padding: 55px 7%
  }

  .instagram-layout {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .instagram-copy h2 {
    font-size: 38px
  }

  .faq {
    grid-template-columns: 1fr;
    padding: 50px 7%;
    gap: 18px
  }

  .faq h2 {
    font-size: 34px
  }

  .footer {
    padding: 45px 7% 110px
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .footer-bottom {
    font-size: 9px
  }

  .floating-bag {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    padding: 14px;
    gap: 9px;
    font-size: 11px
  }

  dialog {
    padding: 22px
  }

  .cart-bottom .button {
    font-size: 10px;
    padding: 16px
  }

  h2 {
    letter-spacing: -1px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important
  }
}

/* Banner fotográfico ajustado: produtos à esquerda e texto à direita. */
@media (min-width:901px) {
  .hero {
    min-height: 640px;
    aspect-ratio: 16 / 9;
    max-height: none
  }

  .hero-copy {
    width: 47%;
    margin-left: 53%;
    padding: 145px 6% 60px 0
  }

  .hero h1 {
    font-size: clamp(48px, 5.1vw, 82px)
  }

  .hero-media>img {
    object-position: left center
  }

  .hero-media:after {
    background: linear-gradient(90deg, transparent 38%, #19221625 60%, #19221670)
  }
}

@media (max-width:900px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-items: stretch
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 150px 7% 38px;
    background: var(--green)
  }

  .hero-copy>p:not(.eyebrow) {
    max-width: 470px
  }

  .hero h1 {
    font-size: clamp(44px, 7vw, 62px)
  }

  .hero .hero-media {
    position: relative !important;
    inset: auto;
    aspect-ratio: 1.25 / 1;
    width: 100%;
    z-index: 0
  }

  .hero-media>img {
    object-position: left center;
    object-fit: cover
  }

  .hero-media:after {
    background: linear-gradient(180deg, #29352640, transparent 18%)
  }
}

@media (max-width:600px) {
  .hero-copy {
    padding-top: 175px
  }

  .hero h1 {
    font-size: clamp(43px, 11.2vw, 65px)
  }

  .hero .hero-media {
    aspect-ratio: 1 / 1
  }
}

/* Fotos reais das categorias: composição vertical e produtos inteiros. */
.category-tabs .category-photo {
  aspect-ratio: 3 / 4
}

.category-tabs .category-photo>img {
  object-fit: contain;
  object-position: center
}

.category-tabs button:hover .category-photo>img {
  transform: none
}

.category-tabs [data-category="velas"] .category-photo {
  background: #eae3d6
}


/* Faixa de valores: sem divisores, leitura mais elegante e responsiva. */
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  padding: 27px 6%;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
  letter-spacing: .15px;
  line-height: 1.35;
}

.values span {
  display: block;
}

@media (max-width: 900px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 24px 5%;
  }

  .values span:last-child {
    display: block;
  }
}

@media (max-width: 600px) {
  .values {
    font-size: 15px;
    gap: 16px 10px;
    padding: 22px 5%;
    letter-spacing: 0;
  }

  .values span:nth-of-type(3) {
    display: block;
  }
}


/* COLEÇÃO — cabeçalho editorial compacto e fotos em destaque */
.collection {
  padding-top: 54px;
}

.collection .section-heading {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
}

.collection .section-heading .eyebrow {
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: 2.4px;
}

.collection .section-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(34px, 3.1vw, 48px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.collection .section-heading>p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.collection .category-tabs {
  gap: 22px;
}

.collection .category-name {
  padding: 17px 19px;
}

@media (max-width: 600px) {
  .collection {
    padding-top: 43px;
  }

  .collection .section-heading {
    margin-bottom: 23px;
  }

  .collection .section-heading h2 {
    font-size: clamp(31px, 8vw, 38px);
  }

  .collection .category-tabs {
    gap: 17px;
  }

  .collection .category-name {
    padding: 17px 19px;
  }
}


/* ========================================================
   D.LUMUS — Microinterações editoriais / Coleção Premium
   Alterações restritas aos cartões e produtos.
   ======================================================== */
.collection .category-tabs button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(41, 53, 38, .10);
  box-shadow: 0 6px 20px rgba(41, 53, 38, .025);
  transform: translateY(0);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1),
    box-shadow .55s cubic-bezier(.22, 1, .36, 1),
    border-color .35s ease, background .35s ease;
  will-change: auto;
}

.collection .category-tabs .category-photo {
  overflow: hidden;
  isolation: isolate;
}

.collection .category-tabs .category-photo::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(41, 53, 38, .13));
  opacity: 0;
  transition: opacity .55s ease;
}

.collection .category-tabs .category-photo>img {
  transition: opacity .5s ease, transform .85s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
  transform: scale(1);
  will-change: auto;
}

.collection .category-tabs .category-name {
  position: relative;
  z-index: 1;
  background: #fffaf4;
  line-height: 1.3;
  transition: background .4s ease, color .4s ease, padding .4s ease;
}

.collection .category-tabs .category-name small {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(174, 147, 103, .35);
  border-radius: 50%;
  line-height: 1;
  font-size: 19px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
    color .35s ease, background .35s ease, border-color .35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .collection .category-tabs button:hover {
    transform: translateY(-9px);
    border-color: rgba(174, 147, 103, .7);
    box-shadow: 0 24px 42px rgba(41, 53, 38, .12);
  }

  .collection .category-tabs button:hover .category-photo>img {
    transform: scale(1.045);
    filter: saturate(1.045);
  }

  .collection .category-tabs button:hover .category-photo::after {
    opacity: 1;
  }

  .collection .category-tabs button:hover .category-name small {
    transform: rotate(45deg);
    background: var(--green);
    color: var(--paper);
    border-color: var(--green);
  }
}

.collection .category-tabs button[aria-selected="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(174, 147, 103, .25), 0 15px 32px rgba(41, 53, 38, .08);
}

.collection .category-tabs button[aria-selected="true"] .category-name {
  background: #eee8db;
}

.collection .category-tabs button[aria-selected="true"] .category-name small {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
  transform: rotate(45deg);
}

.collection .category-tabs button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

/* Produtos aparecem com leve profundidade e têm resposta visual no hover. */
.collection .products>article {
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.collection .product-picture {
  overflow: hidden;
}

.collection .product-picture>img {
  transition: opacity .5s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
}

.collection .product-top button {
  transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .collection .products>article:hover {
    transform: translateY(-5px);
  }

  .collection .products>article:hover .product-picture>img {
    transform: scale(1.035);
  }

  .collection .product-top > button[data-add]:hover {
    transform: rotate(90deg);
    border-color: var(--green);
  }
}

.collection .products>article:focus-within .product-picture>img {
  transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {

  .collection .category-tabs button,
  .collection .category-tabs .category-photo>img,
  .collection .category-tabs .category-photo::after,
  .collection .category-tabs .category-name,
  .collection .category-tabs .category-name small,
  .collection .products>article,
  .collection .product-picture>img,
  .collection .product-top button {
    transition: none !important;
    transform: none !important;
  }
}

/* ================================================
   EXPERIÊNCIA DE DETALHES — D.LUMUS
   ================================================ */
.collection .product-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden
}

.collection .product-open .product-picture {
  width: 100%
}

.collection .product-more {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(248, 245, 239, .96);
  padding: 10px 14px;
  font: 11px Arial, sans-serif;
  letter-spacing: .5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s
}

.collection .product-more span {
  margin-left: 18px
}

.collection .product-title-open {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer
}

.collection .product-title-open:hover {
  color: var(--moss)
}

.collection .product-open:focus-visible,
.collection .product-title-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px
}

@media(hover:hover) {
  .collection .product-open:hover .product-more {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(hover:none) {
  .collection .product-more {
    opacity: 1;
    transform: none
  }
}

.product-detail {
  scroll-margin-top: 35px;
  padding: 12px 0 35px
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--green);
  font-size: 12px;
  letter-spacing: .5px;
  margin: 0 0 28px;
  transition: transform .25s
}

.detail-back:hover {
  transform: translateX(-4px)
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(35px, 6vw, 95px)
}

.detail-image-frame {
  position: relative;
  aspect-ratio: 4/4.3;
  overflow: hidden;
  background: #eae3d6
}

.detail-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.detail-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: clamp(32px, 4vw, 52px) Georgia, serif;
  letter-spacing: 4px;
  color: var(--moss)
}

.detail-image-number {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  background: rgba(248, 245, 239, .92);
  padding: 8px 12px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 1.5px
}

.detail-gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 4px
}

.detail-gallery-controls>button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font-size: 19px;
  transition: background .25s, color .25s
}

.detail-gallery-controls>button:hover:not(:disabled) {
  background: var(--green);
  color: var(--paper)
}

.detail-gallery-controls>button:disabled {
  opacity: .35;
  cursor: default
}

.detail-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px
}

.detail-dots button {
  display: block;
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: transparent;
  transition: background .3s, transform .3s
}

.detail-dots button[aria-current=true] {
  background: var(--green);
  transform: scale(1.3)
}

.detail-info {
  padding: 25px 0 40px
}

.detail-info .eyebrow {
  color: var(--gold);
  margin-bottom: 22px
}

.detail-info h2 {
  font-size: clamp(38px, 4vw, 65px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  margin-bottom: 25px
}

.detail-rule {
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0
}

.detail-description {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 22px
}

.detail-price {
  font: 26px Georgia, serif;
  margin: 15px 0 26px
}

.detail-add {
  min-width: 245px;
  margin: 0;
  justify-content: space-between
}

.detail-add span {
  font-size: 24px;
  line-height: 1
}

.detail-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  max-width: 290px;
  margin: 22px 0 0
}

@media(max-width:800px) {
  .detail-layout {
    gap: 26px;
    grid-template-columns: 1fr
  }

  .detail-image-frame {
    aspect-ratio: 1/1
  }

  .detail-info {
    padding: 12px 0 24px
  }

  .detail-info h2 {
    font-size: clamp(34px, 8vw, 52px)
  }

  .detail-back {
    margin-bottom: 13px
  }
}

@media(prefers-reduced-motion:reduce) {

  .detail-back,
  .detail-dots button,
  .detail-gallery-controls button,
  .product-more {
    transition: none !important
  }
}
/* FOTO ORIGINAL D.LUMUS — SEÇÃO NOSSA ESSÊNCIA */
.essence-art {
  overflow: hidden;
  isolation: isolate;
}
.essence-art > img[data-image="about"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  transition: opacity .5s ease, transform 1.1s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) and (pointer: fine) {
  .essence-art.has-photo:hover > img[data-image="about"] {
    transform: scale(1.035);
  }
}
@media (max-width:600px) {
  .essence-art > img[data-image="about"] {
    object-position: center 42%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .essence-art > img[data-image="about"] {
    transition: none;
  }
}

/* Enquadramento natural: preenche o painel sem bordas desfocadas. */
@media (min-width: 601px) {
  .essence { min-height: 660px; }
  .essence-art > img[data-image="about"] { object-position: 50% 50%; }
}
@media (max-width:600px) {
  .essence-art > img[data-image="about"] { object-position: center; }
}

/* Respeita as quebras de linha nas descrições detalhadas dos produtos. */
.detail-description { white-space: pre-line; }

/* D.LUMUS — títulos de produtos: até duas linhas sem estreitar o nome */
.collection .product-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 14px;
}
.collection .product-top h3 {
  min-width: 0;
  margin: 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.32;
}
.collection .product-top .product-title-open {
  display: -webkit-box;
  width: 100%;
  height: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
}
.collection .product-top > button[data-add] {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .collection .product-top h3 { font-size: 20px; }
}

/* Hover refinado para TODOS os títulos do catálogo. */
.collection .product-top .product-title-open {
  transform: none;
  transition: color .28s ease, opacity .28s ease;
}
.collection .product-top .product-title-open:hover,
.collection .product-top .product-title-open:focus-visible {
  transform: none;
  background: transparent;
  color: var(--moss);
  opacity: .82;
}
@media (prefers-reduced-motion: reduce) {
  .collection .product-top .product-title-open { transition: none; }
}

/* BIOGRAFIA · imagem integral e leitura confortável */
.biography {
  padding: clamp(56px, 7vw, 112px) 7%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.biography-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
  max-width: 1240px;
  margin: 0 auto;
}
.biography-visual {
  margin: 0;
  position: sticky;
  top: 32px;
}
.biography-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.biography-copy { min-width: 0; }
.biography-copy h2 { margin-bottom: 30px; }
.biography-copy h2 em { color: var(--moss); }
.biography-copy p {
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.9;
  color: #505747;
}
.biography-copy .biography-intro {
  color: var(--green);
  font: 21px/1.6 Georgia, 'Times New Roman', serif;
}
.biography-copy .biography-highlight {
  color: var(--green);
  font: italic 25px/1.5 Georgia, 'Times New Roman', serif;
  padding: 6px 0;
}
.biography-copy .biography-closing {
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--green);
  font: 21px/1.6 Georgia, 'Times New Roman', serif;
}
@media (max-width: 780px) {
  .biography { padding: 52px 6%; }
  .biography-layout { grid-template-columns: 1fr; gap: 34px; }
  .biography-visual { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
  .biography-copy h2 { font-size: clamp(34px, 8vw, 46px); margin-bottom: 24px; }
  .biography-copy p { font-size: 15px; line-height: 1.85; }
  .biography-copy .biography-intro,
  .biography-copy .biography-closing { font-size: 20px; }
  .biography-copy .biography-highlight { font-size: 24px; }
}

/* KITS: preenche o cartão vertical usando a foto da embalagem à direita. */
.collection .category-tabs [data-category="kits"] .category-photo > img {
  object-fit: cover;
  object-position: right center;
}


/* ============================================================
   D.LUMUS — layout compacto para celulares (até 600px)
   Apenas visual: mantém desktop, galeria, sacola e produtos.
   ============================================================ */
@media (max-width: 600px) {
  .collection {
    padding: 43px 5% 58px;
  }
  .collection .section-heading {
    margin-bottom: 22px;
  }
  .collection .section-heading h2 {
    font-size: clamp(29px, 8vw, 36px);
    margin-bottom: 9px;
  }

  /* Três categorias legíveis sem ocupar telas inteiras */
  .collection .category-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .collection .category-tabs > button {
    width: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: minmax(112px, 39%) minmax(0, 1fr);
    align-items: stretch;
    text-align: left;
    border: 1px solid rgba(41,53,38,.12);
    box-shadow: none;
  }
  .collection .category-tabs .category-photo {
    width: 100%;
    min-width: 0;
    height: 112px;
    aspect-ratio: auto;
  }
  .collection .category-tabs .category-photo > img,
  .collection .category-tabs [data-category="kits"] .category-photo > img {
    object-fit: cover;
    object-position: center;
    transform: none;
  }
  .collection .category-tabs .category-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 15px;
    min-width: 0;
    font-size: clamp(19px, 5.5vw, 24px);
  }
  .collection .category-tabs .category-name small {
    width: 30px;
    height: 30px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .collection .catalog-caption {
    margin: 26px 0 16px;
    gap: 7px;
    font-size: 12px;
  }

  /* Catálogo em duas colunas, com imagens proporcionais */
  .collection .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 25px;
    align-items: start;
  }
  .collection .products > article {
    min-width: 0;
    width: 100%;
    transform: none;
  }
  .collection .product-open {
    width: 100%;
  }
  .collection .product-picture {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  .collection .product-picture > img {
    object-fit: cover;
    object-position: center;
  }
  .collection .product-top {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 6px;
    align-items: start;
    margin: 11px 0 5px;
  }
  .collection .product-top h3 {
    font-size: 15px;
    line-height: 1.3;
  }
  .collection .product-top .product-title-open {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .collection .product-top > button[data-add] {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .collection .product-description {
    font-size: 11px;
    line-height: 1.55;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .collection .price {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .collection .product-more {
    font-size: 10px;
  }

  /* Detalhe continua amplo para facilitar a escolha */
  .product-detail {
    width: 100%;
    min-width: 0;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-image-frame {
    aspect-ratio: 1 / 1;
  }

  /* Sacola menos intrusiva */
  .floating-bag {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 10px 13px;
    gap: 7px;
    font-size: 11px;
  }
  .floating-bag svg {
    width: 17px;
    height: 19px;
  }
  #bagCount {
    min-width: 22px;
    height: 22px;
  }
}
@media (max-width: 350px) {
  .collection .category-tabs > button {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .collection .category-tabs .category-photo { height: 105px; }
  .collection .products { column-gap: 9px; }
  .collection .product-top h3 { font-size: 14px; }
}
