/* Decor and finishing category presentation. Existing WooCommerce terms remain authoritative. */

body.em26-category--decor {
  --em26decor-shadow: 0 1px 2px rgba(22, 53, 61, 0.05), 0 12px 30px rgba(22, 53, 61, 0.08);
  --em26decor-shadow-up: 0 2px 4px rgba(22, 53, 61, 0.07), 0 18px 42px rgba(22, 53, 61, 0.13);
  --em26decor-soft: color-mix(in srgb, var(--em26-saffron) 9%, var(--em26-surface));
}

.em26-category-hero--decor { border-bottom-color: var(--em26-saffron); }
.em26-category-hero--decor .em26-category-hero__trust { border-left-color: var(--em26-saffron); }









.em26-decor-landing { padding-block: clamp(2rem, 5vw, 4.5rem); }
.em26-decor-landing__header { max-width: 60rem; }

.em26-decor-landing__header h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.9rem, 1.35rem + 2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.em26-decor-landing__header > p:last-child,
.em26-decor-group > header > p:last-child,
.em26-decor-textures > header > p:last-child {
  max-width: 70ch;
  margin: 1rem 0 0;
  color: var(--em26-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.em26-decor-group {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--em26-border);
  border-radius: var(--em26-radius-card);
  background: var(--em26-surface);
  box-shadow: var(--em26decor-shadow);
}

.em26-decor-group--fillers { border-top: 4px solid var(--em26-turquoise); }
.em26-decor-group--finishing { border-top: 4px solid var(--em26-saffron); }
.em26-decor-group h3,
.em26-decor-textures h3,
.em26-decor-guide h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); line-height: 1.15; text-wrap: balance; }

.em26-decor-routes {
  display: grid;
  gap: var(--em26-space-4);
  margin-top: var(--em26-space-5);
}

.em26-decor-routes--fillers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.em26-decor-routes--finishing { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.em26-decor-route {
  position: relative;
  min-width: 0;
  min-height: 13.5rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.8rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--em26-border);
  border-top: 4px solid var(--em26-turquoise);
  border-radius: var(--em26-radius-card);
  background: var(--em26-canvas);
  color: var(--em26-ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.em26-decor-route--stones { border-top-color: var(--em26-cobalt); }
.em26-decor-route--marine { border-top-color: var(--em26-magenta); }
.em26-decor-route--gilding,
.em26-decor-route--stands { border-top-color: var(--em26-saffron); }
.em26-decor-route--botanical { border-top-color: var(--em26-turquoise); }
.em26-decor-route--textures { border-top-color: var(--em26-magenta); }

.em26-decor-route:hover,
.em26-decor-route:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--em26-saffron) 55%, var(--em26-border));
  box-shadow: var(--em26decor-shadow-up);
}

.em26-decor-route:focus-visible,
.em26-decor-family-nav a:focus-visible,
.em26-decor-texture-card a:focus-visible { outline: 3px solid var(--em26-cobalt); outline-offset: 3px; }

.em26-decor-route__number {
  color: var(--em26-cobalt);
  font-family: var(--em26-font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.em26-decor-route strong { max-width: 20ch; padding-right: 1.5rem; font-size: 1.1rem; line-height: 1.28; text-wrap: balance; }
.em26-decor-route small { color: var(--em26-muted); font-size: 0.925rem; line-height: 1.6; }
.em26-decor-route i { position: absolute; right: 1rem; top: 1rem; font-style: normal; }

.em26-decor-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: var(--em26-space-6);
  margin-top: var(--em26-space-7);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--em26-radius-card);
  background: var(--em26-ink);
  box-shadow: var(--em26decor-shadow);
  color: var(--em26-paper);
}

.em26-decor-guide h3 { color: inherit; }
.em26-decor-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid rgba(247, 244, 236, 0.25); border-left: 1px solid rgba(247, 244, 236, 0.25); list-style: none; }
.em26-decor-guide li { min-width: 0; display: grid; align-content: start; gap: 0.75rem; padding: 1.2rem; border-right: 1px solid rgba(247, 244, 236, 0.25); border-bottom: 1px solid rgba(247, 244, 236, 0.25); }
.em26-decor-guide li > b { color: var(--em26-saffron); font-family: var(--em26-font-mono); font-size: 0.75rem; }
.em26-decor-guide li span { display: grid; gap: 0.4rem; color: rgba(247, 244, 236, 0.76); font-size: 0.9rem; line-height: 1.55; }
.em26-decor-guide li strong { color: var(--em26-paper); }

.em26-decor-textures {
  scroll-margin-top: 7rem;
  margin-top: var(--em26-space-7);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--em26-border);
  border-top: 4px solid var(--em26-magenta);
  border-radius: var(--em26-radius-card);
  background: var(--em26-surface);
  box-shadow: var(--em26decor-shadow);
}

.em26-decor-textures__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--em26-space-4); margin-top: var(--em26-space-5); }
.em26-decor-texture-card { min-width: 0; display: grid; grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1.3fr); gap: 1.25rem; padding: 1rem; border: 1px solid var(--em26-border); border-radius: var(--em26-radius-control); background: var(--em26-canvas); }
.em26-decor-texture-card__image { display: block; align-self: start; }
.em26-decor-texture-card__image img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: calc(var(--em26-radius-control) - 0.2rem); background: var(--em26-surface); }
.em26-decor-texture-card > div { min-width: 0; display: grid; align-content: start; gap: 0.65rem; }
.em26-decor-texture-card h4,
.em26-decor-texture-card p { margin: 0; }
.em26-decor-texture-card h4 { font-size: 1.1rem; line-height: 1.3; }
.em26-decor-texture-card h4 a { color: var(--em26-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.em26-decor-texture-card > div > p:not([class]) { color: var(--em26-muted); font-size: 0.9rem; line-height: 1.55; }
.em26-decor-texture-card__link { display: inline-flex; margin-top: auto; color: var(--em26-cobalt); font-size: 0.83rem; font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.em26-decor-family-nav {
  display: flex;
  gap: 0.55rem;
  margin-block: 1.5rem 2rem;
  padding-block: 0.25rem 0.65rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.em26-decor-family-nav a { flex: 0 0 auto; min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0.65rem 0.85rem; border: 1px solid var(--em26-border); border-radius: 999px; background: var(--em26-surface); color: var(--em26-ink); font-size: 0.875rem; font-weight: 750; text-decoration: none; }
.em26-decor-family-nav a:hover,
.em26-decor-family-nav a[aria-current="page"] { border-color: var(--em26-saffron); background: var(--em26decor-soft); }

body.em26-category--decor .products { align-items: stretch; }
body.em26-category--decor .products .product { display: flex; min-width: 0; height: 100%; flex-direction: column; }
body.em26-category--decor .products .product img { width: 100%; aspect-ratio: 1; object-fit: contain; }
body.em26-category--decor .products .product .woocommerce-loop-product__title { min-height: 3.15em; overflow-wrap: break-word; }
body.em26-category--decor .products .product .button { margin-top: auto; }

@media (max-width: 63.99rem) {
  .em26-decor-routes--finishing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em26-decor-guide { grid-template-columns: 1fr; }
}

@media (max-width: 47.99rem) {
  .em26-decor-routes--fillers,
  .em26-decor-routes--finishing,
  .em26-decor-textures__grid,
  .em26-decor-guide ol { grid-template-columns: 1fr; }
  .em26-decor-route { min-height: 0; }
  .em26-decor-texture-card { grid-template-columns: 6.25rem minmax(0, 1fr); }
}

@media (max-width: 25rem) {
  .em26-decor-texture-card { grid-template-columns: 1fr; }
  .em26-decor-texture-card__image { max-width: 10rem; }
}
