:root {
  --wly-shell-bg: #f6f0e5;
  --wly-shell-surface: #fffaf2;
  --wly-shell-dark: #2f211b;
  --wly-shell-text: #261b17;
  --wly-shell-muted: #8b776b;
  --wly-shell-light: #fff9ee;
  --wly-shell-accent: #b93428;
  --wly-shell-accent-hover: #96271f;
  --wly-shell-border: #d9cbbb;
}

body.wly-global-shell {
  color: var(--wly-shell-text);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
}

body.wly-global-shell #masthead {
  position: sticky !important;
  top: 0;
  z-index: 120;
  display: block !important;
  border-bottom: 1px solid var(--wly-shell-border);
  background: rgb(246 240 229 / .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgb(38 27 23 / .06);
}

body.wly-global-shell #masthead .site-main-header-wrap,
body.wly-global-shell #masthead .site-header-row-container-inner,
body.wly-global-shell #masthead .site-main-header-inner-wrap,
body.wly-global-shell #mobile-header .site-main-header-wrap,
body.wly-global-shell #mobile-header .site-header-row-container-inner {
  background: transparent;
}

body.wly-global-shell #masthead .site-main-header-inner-wrap {
  min-height: 84px;
}

body.wly-global-shell #masthead .site-container {
  width: min(calc(100% - clamp(2rem, 7vw, 5.5rem)), 1240px);
  max-width: 1240px;
  padding: 0;
}

body.wly-global-shell #masthead .site-branding .custom-logo {
  width: auto;
  max-width: 210px;
  max-height: 52px;
  object-fit: contain;
}

body.wly-global-shell #primary-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(.25rem, 1vw, .85rem);
}

body.wly-global-shell #primary-menu > li > a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .62rem;
  color: var(--wly-shell-text);
  font-size: clamp(.76rem, .9vw, .88rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.wly-global-shell #primary-menu > li:not(:last-child) > a::after {
  content: "";
  position: absolute;
  right: .62rem;
  bottom: .45rem;
  left: .62rem;
  height: 2px;
  background: var(--wly-shell-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

body.wly-global-shell #primary-menu > li:not(:last-child) > a:hover::after,
body.wly-global-shell #primary-menu > li:not(:last-child) > a:focus-visible::after,
body.wly-global-shell #primary-menu > .current-menu-item:not(:last-child) > a::after,
body.wly-global-shell #primary-menu > .current_page_item:not(:last-child) > a::after {
  transform: scaleX(1);
}

body.wly-global-shell #primary-menu > li:last-child > a {
  margin-left: .35rem;
  padding: .78rem 1rem;
  border-radius: 999px;
  color: var(--wly-shell-light);
  background: var(--wly-shell-accent);
  transition: background .2s ease, transform .18s ease;
}

body.wly-global-shell #primary-menu > li:last-child > a:hover,
body.wly-global-shell #primary-menu > li:last-child > a:focus-visible {
  color: var(--wly-shell-light);
  background: var(--wly-shell-accent-hover);
  transform: translateY(-1px);
}

body.wly-global-shell #masthead .header-button-wrap {
  display: none;
}

body.wly-global-shell #mobile-header .menu-toggle-open {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wly-shell-border);
  border-radius: 50%;
  color: var(--wly-shell-text);
  background: var(--wly-shell-surface);
}

body.wly-global-shell #mobile-drawer .drawer-inner {
  color: var(--wly-shell-light);
  background: var(--wly-shell-dark);
}

body.wly-global-shell #mobile-drawer a,
body.wly-global-shell #mobile-drawer .drawer-toggle {
  color: var(--wly-shell-light);
}

body.wly-global-shell #colophon {
  display: none !important;
}

/* Keep ordinary Kadence pages in the same WANLIYANG color family. */
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) {
  background: var(--wly-shell-bg);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .site,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .site-main,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .content-area,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) article.entry:not(.loop-entry),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .single-content {
  background-color: transparent;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-hero-container-inner {
  color: var(--wly-shell-dark);
  background: #eadfce;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main h1:not(.has-text-color),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main h2:not(.has-text-color),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main h3:not(.has-text-color),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main h4:not(.has-text-color),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .archive-title,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-title,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-title a {
  color: var(--wly-shell-dark) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main a:not(.wp-block-button__link):not(.post-thumbnail),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-taxonomies a,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .category-links a {
  color: var(--wly-shell-accent);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-title a:hover,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-title a:focus-visible,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main a:not(.wp-block-button__link):not(.post-thumbnail):hover,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main a:not(.wp-block-button__link):not(.post-thumbnail):focus-visible {
  color: var(--wly-shell-accent-hover);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-meta,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .entry-summary,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .post-more-link {
  color: var(--wly-shell-muted);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .wp-block-kadence-advancedheading:not(.has-theme-palette-9-color),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kt-svg-icon-list-text,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .wp-block-kadence-listitem {
  color: var(--wly-shell-dark) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main h5.wp-block-kadence-advancedheading:not(.has-theme-palette-9-color),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kb-svg-icon-wrap,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kadence-info-box-icon-container {
  color: var(--wly-shell-accent) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kt-blocks-info-box-media {
  border-color: var(--wly-shell-border) !important;
  color: var(--wly-shell-accent) !important;
  background: var(--wly-shell-surface) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kt-blocks-info-box-title {
  color: var(--wly-shell-dark) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kb-forms-submit {
  border-color: var(--wly-shell-accent) !important;
  color: var(--wly-shell-light) !important;
  background: var(--wly-shell-accent) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kb-forms-submit:hover,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kb-forms-submit:focus-visible {
  border-color: var(--wly-shell-accent-hover) !important;
  color: var(--wly-shell-light) !important;
  background: var(--wly-shell-accent-hover) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) .loop-entry {
  overflow: hidden;
  border: 1px solid var(--wly-shell-border);
  border-radius: 20px;
  background: var(--wly-shell-surface) !important;
  box-shadow: 0 18px 48px rgb(47 33 27 / .08);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .has-theme-palette8-background-color {
  background-color: var(--wly-shell-bg) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .has-theme-palette7-background-color {
  background-color: #eadfce !important;
}

body.page-id-520.wly-global-shell .kb-row-layout-id520_487613-1a > .kt-row-layout-overlay {
  background-color: rgb(246 240 229 / .72) !important;
  background-blend-mode: multiply;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .wp-block-button__link,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kb-button,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main button[type="submit"],
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main input[type="submit"] {
  border-color: var(--wly-shell-accent) !important;
  color: var(--wly-shell-light) !important;
  background: var(--wly-shell-accent) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .wp-block-button__link:hover,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .wp-block-button__link:focus-visible,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kb-button:hover,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main .kb-button:focus-visible,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main button[type="submit"]:hover,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main button[type="submit"]:focus-visible,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main input[type="submit"]:hover,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main input[type="submit"]:focus-visible {
  border-color: var(--wly-shell-accent-hover) !important;
  color: var(--wly-shell-light) !important;
  background: var(--wly-shell-accent-hover) !important;
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main textarea,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main select {
  border-color: var(--wly-shell-border);
  color: var(--wly-shell-text);
  background: var(--wly-shell-surface);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main input:focus,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main textarea:focus,
body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main select:focus {
  border-color: var(--wly-shell-accent);
  box-shadow: 0 0 0 2px rgb(185 52 40 / .18);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main blockquote {
  border-color: var(--wly-shell-accent);
  color: var(--wly-shell-dark);
  background: var(--wly-shell-surface);
}

body.wly-global-shell:not(.wly-homepage-active):not(.wly-product-detail) main hr {
  border-color: var(--wly-shell-border);
}

.wly-global-footer {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  color: var(--wly-shell-light);
  background: var(--wly-shell-dark);
}

.wly-global-footer,
.wly-global-footer * {
  box-sizing: border-box;
}

.wly-global-footer__inner,
.wly-global-footer__bottom {
  width: min(calc(100% - clamp(2rem, 8vw, 6rem)), 1240px);
  margin-inline: auto;
}

.wly-global-footer__inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(300px, 1fr) minmax(240px, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.wly-global-footer__brand-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--wly-shell-light);
  text-decoration: none;
}

.wly-global-footer__mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 44% 56%;
  color: var(--wly-shell-light);
  background: var(--wly-shell-accent);
  font: 700 1.12rem/1 "Noto Sans SC", sans-serif;
  transform: rotate(-5deg);
}

.wly-global-footer__brand-link > span:last-child {
  display: grid;
  line-height: 1.05;
}

.wly-global-footer__brand-link strong {
  font-size: 1rem;
  letter-spacing: .09em;
}

.wly-global-footer__brand-link small {
  margin-top: .3rem;
  color: #efc8b7;
  font: 500 .68rem/1 "Noto Sans SC", sans-serif;
  letter-spacing: .14em;
}

.wly-global-footer__brand p,
.wly-global-footer__buyer p {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: #efc8b7;
  line-height: 1.7;
}

.wly-global-footer h2 {
  margin: 0 0 1.25rem;
  color: var(--wly-shell-light);
  font: 600 1.35rem/1.15 "Fraunces", Georgia, serif;
}

.wly-global-footer__menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wly-global-footer__menu li {
  margin: 0;
}

.wly-global-footer__menu a {
  color: var(--wly-shell-light);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.wly-global-footer__menu a:hover,
.wly-global-footer__menu a:focus-visible {
  color: #efc8b7;
}

.wly-global-footer__buyer > a {
  min-height: 46px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: .82rem 1.1rem;
  border-radius: 999px;
  color: var(--wly-shell-light);
  background: var(--wly-shell-accent);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.wly-global-footer__buyer > a:hover,
.wly-global-footer__buyer > a:focus-visible {
  color: var(--wly-shell-light);
  background: var(--wly-shell-accent-hover);
}

.wly-global-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 249 238 / .18);
  color: #efc8b7;
  font-size: .76rem;
}

.wly-global-footer__bottom p {
  margin: 0;
}

@media (max-width: 1024px) {
  .wly-global-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .wly-global-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  body.wly-global-shell #masthead .site-container {
    width: min(calc(100% - 2rem), 1240px);
  }

  body.wly-global-shell #masthead .site-branding .custom-logo {
    max-width: 170px;
    max-height: 44px;
  }

  .wly-global-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .wly-global-footer__brand {
    grid-column: auto;
  }

  .wly-global-footer__bottom {
    display: grid;
    gap: .6rem;
  }
}

@media (min-width: 783px) {
  body.admin-bar.wly-global-shell #masthead {
    top: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar.wly-global-shell #masthead {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wly-global-shell #primary-menu > li > a,
  .wly-global-footer a {
    transition: none;
  }
}
