:root {
  --bb-site-ink:#181413;
  --bb-site-muted:#6d6865;
  --bb-site-soft:#f7f0e8;
  --bb-site-cream:#fffaf3;
  --bb-site-panel:#fffdf8;
  --bb-site-line:#d9cec0;
  --bb-site-accent:#a13762;
  --bb-site-heading:Georgia,"Times New Roman",serif;
  --bb-site-body:Inter,Arial,sans-serif;
}

body {
  background:var(--bb-site-soft) !important;
  color:var(--bb-site-ink) !important;
  font-weight:var(--bb-site-body-weight,400);
}
body :where(p,li,dd,.rte) { color:var(--bb-page-body,var(--bb-site-muted)); }
body :where(h1,h2,h3,h4,h5,h6) {
  color:var(--bb-site-ink);
  letter-spacing:0;
}

/* Header and navigation */
.header-section {
  background:var(--bb-header-bg,var(--bb-site-cream)) !important;
  color:var(--bb-header-text,var(--bb-site-ink)) !important;
  border-bottom:1px solid var(--bb-header-line,var(--bb-site-line)) !important;
  box-shadow:none !important;
  backdrop-filter:blur(16px);
}
.header-section .header__container,
.theme-sticky-header--sticky .header-section .header__container {
  background:var(--bb-header-bg,var(--bb-site-cream)) !important;
}
.header-section.transparent:not(:hover) .header__container {
  background:transparent !important;
}
.header-section :where(a,button,input,summary,span),
.header-nav__menu-item,
.header-nav__ellipsis,
.header-action-bar { color:var(--bb-header-text,var(--bb-site-ink)) !important; }
.header__logo-text { font-family:var(--bb-site-heading) !important; font-weight:var(--bb-logo-weight,700) !important; }
.header-nav__menu,
.header-nav-drawer__menu,
.header-action-bar { font-family:var(--bb-site-body) !important; }
.header-section :where(.header-nav__menu-item,.header-nav__ellipsis,.header-action-bar__search-bar-input,
  .header-action-bar__locale-picker,.header-action-bar__country-picker,.header-nav-drawer__menu-control,
  .header-nav-drawer__menu-link,.header-nav-dropdown-panel__link) {
  font-family:var(--bb-header-font,var(--bb-site-body)) !important;
  font-weight:var(--bb-header-weight,500) !important;
  font-style:normal !important;
}
.header-nav-dropdown-menu,
.header-nav-dropdown-panel,
.header-nav-drawer__content,
.header-search-bar__form,
.header-search-bar__results,
.header-action-bar__results {
  background:var(--bb-site-cream) !important;
  color:var(--bb-site-ink) !important;
  border-color:var(--bb-site-line) !important;
}
.header-nav__underline::after { background:var(--bb-header-hover,var(--bb-site-accent)) !important; }
.header-section .header-nav__menu-item > a,
.header-section .header-nav__ellipsis {
  color:var(--bb-header-nav-text,var(--bb-header-text,var(--bb-site-ink))) !important;
}

/* Refined desktop navigation: single line, balanced logo/menu/actions. */
@media (min-width:960px) {
  .header-section .header__container-top-wrap {
    min-height:72px;
    padding-block:var(--bb-header-padding,12px) !important;
    column-gap:clamp(18px,2.2vw,34px) !important;
  }
  .header-section .header-nav {
    min-width:0;
    overflow-x:auto;
    overflow-y:visible;
    scrollbar-width:none;
  }
  .header-section .header-nav::-webkit-scrollbar { display:none; }
  .header-section .header-nav__menu {
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:var(--bb-header-nav-gap,24px) !important;
    width:max-content;
    min-width:100%;
    justify-content:var(--bb-header-nav-justify,center) !important;
  }
  .header-section .header-nav__menu-item {
    flex:0 0 auto !important;
    margin:0 !important;
    font-size:var(--bb-header-nav-size,14px) !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
  }
  .header-section .header-nav__menu-item > a,
  .header-section .header-nav__menu-item > a > span,
  .header-section .header-nav__ellipsis,
  .header-section .header-nav__ellipsis > span {
    font-family:var(--bb-header-font,var(--bb-site-body)) !important;
    font-size:var(--bb-header-nav-size,14px) !important;
    font-weight:var(--bb-header-weight,500) !important;
    line-height:1.2 !important;
  }
  .header-section .header-nav__menu-item > a {
    padding-block:12px !important;
    transition:color .2s ease,opacity .2s ease !important;
  }
  .header-section .header-nav__menu-item > a:hover { color:var(--bb-header-hover,var(--bb-site-accent)) !important; }
  .header-section .header__logo-image { max-height:72px;object-fit:contain; }
  .header-section .header-action-bar {
    flex:0 0 auto !important;
    column-gap:var(--bb-header-action-gap,12px) !important;
    white-space:nowrap;
    padding-block:8px !important;
  }
  .header-section theme-locale-picker .theme-locale-picker__inner { gap:12px !important; }
  .header-section .header-nav-dropdown-menu,
  .header-section .header-nav-dropdown-panel {
    margin-top:2px;
    border:1px solid var(--bb-header-line,var(--bb-site-line)) !important;
    border-radius:10px !important;
    box-shadow:0 18px 50px rgba(24,20,19,.12) !important;
    overflow:hidden;
  }

  /* Boutique/editorial two-tier header. */
  .header-section .header__container[layout="center_logo_wrap_menu"] .header__container-top-wrap {
    display:grid !important;
    grid-template-areas:"action-bar-left logo action-bar-right" !important;
    grid-template-columns:1fr auto 1fr !important;
    width:min(1240px,calc(100% - 56px)) !important;
    min-height:82px;
    padding-block:10px !important;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header-action-bar.left {
    grid-area:action-bar-left;
    justify-self:start;
    margin:0 !important;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header__logo {
    grid-area:logo;
    justify-self:center;
    order:initial;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header-action-bar.right {
    grid-area:action-bar-right;
    justify-self:end;
    margin:0 !important;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header__container-bottom {
    display:flex !important;
    min-height:48px;
    padding-inline:28px;
    border-top:1px solid color-mix(in srgb,var(--bb-header-line,var(--bb-site-line)) 72%,transparent) !important;
    border-bottom:1px solid var(--bb-header-line,var(--bb-site-line)) !important;
    background:color-mix(in srgb,var(--bb-header-bg,var(--bb-site-cream)) 94%,white 6%) !important;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header__container-bottom .header-nav {
    flex:1 1 auto;
    width:min(1180px,100%);
    margin-inline:auto;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header__container-bottom .header-nav__menu {
    justify-content:center !important;
    min-width:0 !important;
    margin-inline:auto;
    letter-spacing:.015em;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header__container-bottom .header-nav__menu-item > a {
    position:relative;
    padding-block:15px !important;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header__container-bottom .header-nav__underline::after {
    height:2px !important;
    border-radius:999px;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header-action-bar,
  .header-section .header__container[layout="center_logo_wrap_menu"] theme-locale-picker {
    font-size:12px !important;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header-action-bar .button--icon {
    width:var(--bb-header-icon-size,30px);
    height:var(--bb-header-icon-size,30px);
    border-radius:999px;
    transition:background-color .2s ease,color .2s ease;
  }
  .header-section .header__container[layout="center_logo_wrap_menu"] .header-action-bar .button--icon:hover {
    color:var(--bb-header-hover,var(--bb-site-accent)) !important;
    background:color-mix(in srgb,var(--bb-header-hover,var(--bb-site-accent)) 9%,transparent) !important;
  }
  .header-section .bb-nav-accent {
    position:absolute;
    top:50%;
    z-index:2;
    display:flex;
    align-items:center;
    gap:7px;
    max-width:190px;
    transform:translateY(-50%);
    color:var(--bb-nav-decor-color,var(--bb-header-hover,#a13762)) !important;
    font-family:var(--bb-nav-decor-font,Inter,Arial,sans-serif) !important;
    font-size:var(--bb-nav-decor-size,9px) !important;
    font-weight:var(--bb-nav-decor-weight,600) !important;
    line-height:1.2;
    letter-spacing:.13em;
    white-space:nowrap;
    text-transform:uppercase;
    pointer-events:none;
  }
  .header-section .bb-nav-accent--left { left:24px; }
  .header-section .bb-nav-accent--right { right:24px;text-align:right; }
  .header-section .bb-nav-accent-image,
  .header-section .bb-nav-accent img {
    display:block;
    flex:0 0 auto;
    width:var(--bb-nav-decor-image-width,70px) !important;
    max-height:38px;
    object-fit:contain;
    filter:opacity(var(--bb-nav-decor-opacity,85%));
  }

  /* Preferred single-row arrangement: logo | navigation | actions. */
  .header-section .header__container[layout="left_logo_left_menu"] .header__container-top-wrap {
    display:grid !important;
    grid-template-areas:"logo nav action-bar-right" !important;
    grid-template-columns:auto minmax(0,1fr) auto !important;
    width:min(1440px,calc(100% - 56px)) !important;
    min-height:76px;
    padding-block:var(--bb-header-padding,10px) !important;
    column-gap:clamp(22px,3vw,48px) !important;
  }
  .header-section .header__container[layout="left_logo_left_menu"] .header__logo {
    grid-area:logo;
    justify-self:start !important;
    justify-content:flex-start !important;
    order:initial;
  }
  .header-section .header__container[layout="left_logo_left_menu"] .bb-header-nav-shell {
    grid-area:nav;
    display:flex;
    align-items:center;
    min-width:0;
    gap:8px;
  }
  .header-section .header__container[layout="left_logo_left_menu"] .bb-header-nav-shell > theme-nav-bar {
    display:block;
    flex:1 1 auto;
    min-width:0;
  }
  .header-section .header__container[layout="left_logo_left_menu"] .bb-header-nav-shell .header-nav {
    width:100%;
    min-width:0;
  }
  .header-section .header__container[layout="left_logo_left_menu"] .header-action-bar.right {
    grid-area:action-bar-right;
    display:flex !important;
    justify-self:end;
    justify-content:flex-end;
    margin:0 !important;
    column-gap:var(--bb-header-action-gap,12px) !important;
  }
  .header-section .header__container[layout="left_logo_left_menu"] .header-action-bar.right .button--icon {
    width:var(--bb-header-icon-size,30px) !important;
    height:var(--bb-header-icon-size,30px) !important;
  }
  .header-section .bb-nav-inline-accent {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    width:calc(var(--bb-nav-decor-image-width,70px) * .72);
    pointer-events:none;
  }
  .header-section .bb-nav-inline-accent img,
  .header-section .bb-nav-inline-accent .bb-nav-accent-image {
    display:block;
    width:100% !important;
    max-height:32px;
    object-fit:contain;
    filter:opacity(var(--bb-nav-decor-opacity,85%));
  }
}

@media (min-width:960px) and (max-width:1499px) {
  .header-section .bb-nav-inline-accent { display:none !important; }
}

@media (min-width:960px) and (max-width:1499px) {
  .header-section .bb-nav-accent span { display:none; }
  .header-section .bb-nav-accent { max-width:80px; }
}
@media (min-width:960px) and (max-width:1279px) {
  .header-section .bb-nav-accent { display:none !important; }
}

@media (max-width:959px) {
  .header-section .header__container-top-wrap { min-height:62px;padding-block:8px !important; }
  .header-section .header__logo-image { max-height:48px;object-fit:contain; }
  .header-section .header-action-bar { column-gap:10px !important; }
  .header-nav-drawer__content { border-top:1px solid var(--bb-header-line,var(--bb-site-line)) !important; }
  .header-nav-drawer__menu-link,
  .header-nav-drawer__menu-control { font-size:15px !important;line-height:1.35 !important;padding-block:14px !important; }
  .header-section .header-nav-drawer__menu-link:hover,
  .header-section .header-nav-drawer__menu-control:hover {
    color:var(--bb-header-hover,var(--bb-site-accent)) !important;
    background:color-mix(in srgb,var(--bb-header-hover,var(--bb-site-accent)) 6%,transparent) !important;
  }
}

/* Footer */
.footer {
  background:var(--bb-footer-bg,var(--bb-site-ink)) !important;
  color:var(--bb-footer-heading,var(--bb-site-panel)) !important;
  border-top:1px solid var(--bb-footer-line,#4a4542) !important;
}
.footer :where(h1,h2,h3,h4,h5,h6,.footer__menu-title,.footer__custom-text-title,.footer__social-media-title,.footer__email-subscribe-title) {
  color:var(--bb-footer-heading,var(--bb-site-panel)) !important;
  font-family:var(--bb-footer-heading-font,var(--bb-site-heading)) !important;
  font-weight:var(--bb-footer-heading-weight,700) !important;
}
.footer :where(p,a,li,span,.rte,.footer__menu-content,.footer__copyright-text) {
  color:var(--bb-footer-text,#d8d3cf) !important;
  font-family:var(--bb-footer-body-font,var(--bb-site-body)) !important;
  font-weight:var(--bb-footer-body-weight,400) !important;
}
.footer :where(.title0,.title1,.title2,.title3,.title4,.title5,.title6) {
  font-family:var(--bb-site-heading) !important;
}
.footer :where(.body0,.body1,.body2,.body3,.body4,.body5,.body6) {
  font-family:var(--bb-site-body) !important;
}
.footer a:hover { color:var(--bb-footer-hover,#fff) !important; }
.footer input {
  background:transparent !important;
  color:var(--bb-footer-heading,var(--bb-site-panel)) !important;
  border-color:var(--bb-footer-line,#4a4542) !important;
}
.footer input::placeholder { color:var(--bb-footer-text,#d8d3cf) !important; }

/* Shared page canvas and editorial headings */
:where(.main-collection-container,.main-collection-cover,.section-main-collections-all,.main-blog,.main-page,.main-article,.main-search,.main-cart,.main-account,.main-not-found) {
  background:var(--bb-site-soft) !important;
  color:var(--bb-site-ink) !important;
}
:where(.main-page__title,.main-blog h1,.main-article h1,.main-search h1,.main-cart h1,.block-main-collection__heading,.section-main-collections-all h1,.section-main-collections-all h2) {
  color:var(--bb-page-heading,var(--bb-site-ink)) !important;
}
.breadcrumb,
.breadcrumb a { color:var(--bb-site-muted) !important; font-family:var(--bb-site-body) !important; }

/* Product, collection, blog and search cards */
:where(.product-card,.main-search__page-card,.article-card,.blog-card,.collection-card,.main-collection__list > *,transcy-product-card) {
  background:var(--bb-site-cream);
  border-color:var(--bb-site-line) !important;
}
:where(.product-card h1,.product-card h2,.product-card h3,.product-card__title,.main-search__page-card-title,.article-card__title,.blog-card__title,.collection-card__title) {
  color:inherit;
}
:where(.product-price,.product-card__price,.price,.main-collection__list [class*="price"]) {
  color:inherit;
}

/* Forms, cart panels and information surfaces */
:where(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:var(--bb-site-cream) !important;
  color:var(--bb-site-ink) !important;
  border-color:var(--bb-site-line) !important;
  font-family:var(--bb-site-body) !important;
}
:where(.main-cart-items,.main-cart-footer,.main-cart-footer__inner,.main-search__header,.facets__wrapper,.drawer__inner) {
  background:var(--bb-site-cream) !important;
  border-color:var(--bb-site-line) !important;
}
:where(.button--primary,button[type="submit"],.main-cart-footer__checkout .button) {
  background:var(--bb-primary-bg,var(--bb-site-ink)) !important;
  border-color:var(--bb-primary-bg,var(--bb-site-ink)) !important;
  color:var(--bb-primary-text,var(--bb-site-panel)) !important;
  -webkit-text-fill-color:var(--bb-primary-text,var(--bb-site-panel)) !important;
  font-family:var(--bb-site-body) !important;
  font-weight:var(--bb-button-weight,600) !important;
}
:where(.button--primary,button[type="submit"],.main-cart-footer__checkout .button):hover {
  background:var(--bb-primary-hover,var(--bb-site-accent)) !important;
  border-color:var(--bb-primary-hover,var(--bb-site-accent)) !important;
}
:where(.button--secondary) {
  background:var(--bb-secondary-bg,transparent) !important;
  border-color:var(--bb-secondary-line,var(--bb-site-ink)) !important;
  color:var(--bb-secondary-text,var(--bb-site-ink)) !important;
  font-weight:var(--bb-button-weight,600) !important;
}

@media (max-width: 820px) {
  .header-section { background:var(--bb-header-bg,var(--bb-site-cream)) !important; }
  .header-nav-drawer__content { background:var(--bb-site-cream) !important; }
  .header-nav-drawer__menu-control { border-color:var(--bb-site-line) !important; }
  .footer__inner { text-align:left; }
  :where(.main-page__title,.main-blog h1,.main-article h1,.main-search h1,.main-cart h1,.block-main-collection__heading) {
    line-height:1 !important;
  }
}

/* v34 navigation and footer polish. Values remain connected to the editable
   header/footer variables created by their sections. */
@media (min-width:960px) {
  .header-section .header__container-top-wrap { min-height:74px !important; }
  .header-section .header__logo-image { width:auto !important;max-width:125px !important;max-height:58px !important; }
  .header-section .header-nav__menu-item > a { position:relative; }
  .header-section .header-nav__menu-item > a::after {
    position:absolute;left:50%;bottom:6px;width:0;height:2px;border-radius:999px;
    content:"";background:var(--bb-header-hover,var(--bb-site-accent));
    transform:translateX(-50%);transition:width 200ms ease;
  }
  .header-section .header-nav__menu-item > a:hover::after,
  .header-section .header-nav__menu-item[aria-current="page"] > a::after { width:24px; }
  .header-section .header-action-bar .button--icon { border-radius:999px;transition:color 200ms ease,background-color 200ms ease,transform 200ms ease; }
  .header-section .header-action-bar .button--icon:hover { color:var(--bb-header-hover,var(--bb-site-accent)) !important;background:color-mix(in srgb,var(--bb-header-hover,var(--bb-site-accent)) 9%,transparent) !important;transform:translateY(-1px); }
}

.footer { padding-block:clamp(56px,5vw,68px) !important; }
.footer :where(.footer__menu-title,.footer__custom-text-title,.footer__social-media-title,.footer__email-subscribe-title) { font-size:16px !important;line-height:1.2 !important; }
.footer :where(a,p,li,.footer__copyright-text) { font-size:13px;line-height:1.65; }
.footer a { display:inline-block;transition:color 180ms ease,transform 180ms ease; }
.footer a:hover { transform:translateX(3px); }
.footer input { min-height:44px; }
.footer :where(button[type="submit"],.button--primary) { min-height:44px;background:var(--bb-footer-button-bg,var(--bb-footer-hover,var(--bb-site-accent))) !important;border-color:var(--bb-footer-button-bg,var(--bb-footer-hover,var(--bb-site-accent))) !important;color:var(--bb-footer-button-text,#fffaf3) !important;-webkit-text-fill-color:var(--bb-footer-button-text,#fffaf3) !important; }

@media (max-width:959px) {
  .header-section .header__container-top-wrap { min-height:64px !important;padding-inline:16px !important; }
  .header-section .header__logo-image { max-width:112px !important;max-height:46px !important; }
  .footer { padding-block:48px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .header-section *, .footer * { transition-duration:.01ms !important; }
}
