/* Shared public shell. Native locale/auth/store/cart behavior stays unchanged. */
@font-face {
  font-family: "KC Homepage UI Thai";
  src: url("/kc_website_theme/static/src/fonts/brand/noto-sans-thai-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "KC Homepage UI Thai";
  src: url("/kc_website_theme/static/src/fonts/brand/noto-sans-thai-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] :is(.kc-head-btn, .kc-lang__select) {
  font-family: Arial, "KC Homepage UI Thai", sans-serif !important;
}
html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-homepage-brand,
html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-homepage-auth-icon,
html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-homepage-auth-label { display: none !important; }

@media (max-width: 767.98px), (max-width: 991.98px) and (max-height: 500px) {
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] > .kc-wrap {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 8px 6px !important;
    min-width: 0 !important;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px)) !important;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-actions { display: contents !important; }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-logo {
    grid-column: 1 / 7 !important;
    grid-row: 1 !important;
    width: 176px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-logo > :not(.kc-homepage-brand) { display: none !important; }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-homepage-brand {
    display: block !important;
    width: 176px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-lang-form {
    grid-column: 7 / 13 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    position: relative;
    width: 146px !important;
    min-width: 146px !important;
    max-width: 146px !important;
    margin: 0 !important;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-lang-form:has(select.kc-lang__select)::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 1.5px solid #fffbea;
    border-bottom: 1.5px solid #fffbea;
    transform: rotate(45deg);
    pointer-events: none;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-lang::after { display: none !important; }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-lang__select {
    box-sizing: border-box !important;
    width: 100% !important;
    inline-size: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding-inline: 10px 26px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-transform: none !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: none !important;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] :is(.kc-head-btn--account, .kc-head-btn--cart, .kc-head-btn--location) {
    min-width: 0 !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 8px 7px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #fffbea !important;
    gap: 6px !important;
    white-space: normal !important;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--account {
    grid-column: 6 / 10 !important;
    grid-row: 2 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--account::before { content: none !important; display: none !important; }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--account > span:not(.kc-homepage-auth-label) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-homepage-auth-label {
    display: inline !important;
    position: static;
    color: inherit;
    font: inherit;
    letter-spacing: 0;
    white-space: nowrap;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-homepage-auth-icon {
    display: block !important;
    flex: none;
    width: 20px;
    height: 20px;
    color: inherit;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--cart {
    grid-column: 10 / 13 !important;
    grid-row: 2 !important;
    justify-content: center;
    color: #263312 !important;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--location {
    grid-column: 1 / 6 !important;
    grid-row: 2 !important;
    order: 0 !important;
  }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--location > span:first-of-type {
    white-space: normal !important;
    overflow-wrap: normal;
  }
}
@media (max-width: 359.98px) {
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-lang-form { width: 138px !important; min-width: 138px !important; max-width: 138px !important; }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--account { grid-column: 1 / 7 !important; }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--cart { grid-column: 7 / 13 !important; }
  html body #wrapwrap header.kc-head[data-kc-shared-shell="1"] .kc-head-btn--location { grid-column: 1 / 13 !important; grid-row: 3 !important; }
}


/* Breadcrumb UI keeps its current sizes and link targets. */
html body
