/* ==========================================================
   BUBUBU – TYPOGRAPHY SYSTEM
   Barlow + Barlow Condensed, self-hosted under the SIL OFL.

   Upload this file to:
   /user/documents/upload/bububu/css/bububu-typography.css

   Upload the accompanying WOFF2 files to:
   /user/documents/upload/bububu/fonts/

   Keep this stylesheet LAST among Bububu CSS links in HEAD.
   ========================================================== */

/* ---------- Barlow: text and long-form content ---------- */

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Barlow Condensed: headings and short UI copy ---------- */

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bububu Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/user/documents/upload/bububu/fonts/barlow-condensed-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- One source of truth ---------- */

:root {
  --bb-font-text: "Bububu Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bb-font-display: "Bububu Barlow Condensed", "Arial Narrow", sans-serif;
}

html,
body {
  font-family: var(--bb-font-text) !important;
}

body input,
body select,
body textarea,
body .form-control,
body .search-input {
  font-family: var(--bb-font-text) !important;
}

/* Custom Bububu modules inherit the same readable text face. */
body [class^="bb-"],
body [class*=" bb-"],
body [class^="bubu-"],
body [class*=" bubu-"],
body #footer,
body .bb-shipping-page,
body .bb-store-page,
body .bb-product-story,
body.type-post .bubu-article {
  font-family: var(--bb-font-text) !important;
}

/* Headings and short editorial labels share the Vivo-inspired display face. */
body h1,
body h2,
body h3,
body .h1,
body .h2,
body .h3,
body .category-title,
body .homepage-products-heading-2,
body [class*="__title"],
body [class*="__heading"],
body [class*="__eyebrow"],
body [class*="__kicker"],
body [class*="__label"],
body.type-index [class*="__title"],
body.type-index [class*="__heading"],
body.type-index [class*="__eyebrow"],
body.type-index [class*="__kicker"],
body.type-category [class*="__title"],
body.type-category [class*="__heading"],
body.type-product [class*="__title"],
body.type-product [class*="__heading"],
body.type-post .bubu-article h1,
body.type-post .bubu-article h2,
body.type-post .bubu-article h3,
body.type-post .bubu-article h4,
body.type-product .p-detail-inner-header h1,
body.in-kosik.ordering-process h1,
body.in-kosik.ordering-process h2,
body.in-kosik.ordering-process h3,
body.in-kosik.ordering-process .h4,
.bb-shipping-page h1,
.bb-shipping-page h2,
.bb-shipping-page h3,
#footer h2,
#footer h3,
#footer h4 {
  font-family: var(--bb-font-display) !important;
}

/* Main and mobile navigation. Icon pseudo-elements keep their own icon fonts. */
#navigation,
#navigation a,
#navigation b,
#navigation span,
#navigation button,
.navigation-in,
.navigation-in a,
.navigation-in b,
.navigation-in span,
.navigation-in button,
.menu-level-1,
.menu-level-1 a,
.menu-level-1 b,
.menu-level-1 span,
.menu-level-1 button,
.top-navigation-bar,
.top-navigation-bar a,
.top-navigation-bar button {
  font-family: var(--bb-font-display) !important;
}

/* Beat the older high-specificity header rule from global.css. */
body #navigation .menu-level-1 > li > a,
body #navigation .menu-level-1 > li > a > b,
body #navigation .menu-level-1 > li > a > span {
  font-family: var(--bb-font-display) !important;
}

#header .search-input,
#header .search-form input {
  font-family: var(--bb-font-text) !important;
}

/* Category filters and sorting: condensed controls, readable option values. */
body.type-category .box-filters h4,
body.type-category .filter-section > h4,
body.type-category .filter-section .filter-section-title,
body.type-category .bb-mobile-filter-head,
body.type-category .bb-mobile-filter-trigger,
body.type-category .bb-sort-toggle,
body.type-category .listSorting__control,
body.type-category .listingControls button {
  font-family: var(--bb-font-display) !important;
}

body.type-category .filter-section label,
body.type-category .filter-section-content,
body.type-category .filter-section-content a,
body.type-category .filter-section-content span {
  font-family: var(--bb-font-text) !important;
}

/* Product cards, detail, cart and checkout. */
body .products .product .name,
body .products .product .name a,
body .product .p-name,
body .product .p-name a,
body.type-product .p-detail-inner-header h1,
body .flag,
body .shp-flag,
body .btn,
body button,
body input[type="button"],
body input[type="submit"],
body input[type="reset"],
body a.btn,
body .bb-main-hero__button,
body .next-step,
body .continue-shopping,
body.type-product .p-detail-inner button,
body.type-product .p-detail [data-testid="buttonProductDescription"] {
  font-family: var(--bb-font-display) !important;
}

/* Breadcrumbs stay compact and readable rather than condensed. */
body .breadcrumbs,
body .breadcrumbs a,
body .breadcrumbs span,
body .breadcrumbs li {
  font-family: var(--bb-font-text) !important;
}

/* Checkout country notices are generated by CSS and need an explicit face. */
body.id--16 .form-group:has(> #deliveryCountryId)::after {
  font-family: var(--bb-font-text) !important;
}

/* Strong editorial titles use the heaviest loaded display weight. */
body.type-index .bb-main-hero__title,
body.type-index .bb-home-categories__title,
body.type-index .bb-home-category__name,
body.type-index .bb-values__heading,
body.type-index .bb-store-hero__title,
body.type-post .bubu-article__header h1,
body.type-product .p-detail-inner-header h1,
.bb-shipping-hero h1 {
  font-weight: 800 !important;
}

/* Avoid faux uppercase tracking becoming too wide in the condensed face. */
#navigation .menu-level-1 > li > a,
body .btn,
body button,
body [class*="__eyebrow"],
body [class*="__kicker"] {
  letter-spacing: .01em;
}

