/* The app's search screen uses white, neutral gray and black. */
.global-storefront body.theme-beclean .gp-search,
.global-storefront body.theme-beclean .gp-search:focus-within,
.global-storefront body.theme-beclean.app-home-page.cast-app-header .gp-search,
.global-storefront body.theme-beclean.app-home-page.cast-app-header .gp-search:focus-within { border: 0; border-radius: 4px; background: #f6f7f9; color: #111; box-shadow: none; }
.global-storefront .gp-search :is(input,button) { color: #111; }
.global-storefront .gp-search input::placeholder { color: #8e939c; }
/* Search is one rounded field; never outline its inner input or icon button. */
.global-storefront body.theme-beclean :is(.gp-search,.cast-search-field) :is(input,button):focus-visible,
.global-storefront body.theme-beclean .topbar .gp-search :is(input,button):focus-visible { outline: none; box-shadow: none; }
.global-storefront body.theme-beclean :is(.gp-search,.cast-search-field):has(:focus-visible) { box-shadow: 0 0 0 1px #d8dadd; }
.global-storefront body.theme-beclean .topbar .utility-nav > .language-switcher--dropdown,
.global-storefront body.theme-beclean.app-home-page.cast-app-header .topbar .utility-nav > .language-switcher--dropdown { order: 100; }
.global-storefront body.theme-beclean .topbar .utility-nav .gp-b2b-link,
.global-storefront body.theme-beclean.app-home-page.cast-app-header .topbar .utility-nav .gp-b2b-link { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; order: 200; gap: 4px; min-height: 32px; flex-shrink: 0; margin-inline-start: 6px; padding: 0 12px; border: 1px solid #e1e3e6; border-radius: 4px; background: #fff; color: #111; font: 500 12px/1.4 Pretendard,sans-serif; white-space: nowrap; text-decoration: none; }
.global-storefront body.theme-beclean .topbar .utility-nav .gp-b2b-link:hover { border-color: #b8bdc5; background: #f8f9fa; }
.global-storefront body.theme-beclean .topbar .utility-nav .gp-b2b-link:active { background: #f0f1f3; }
.global-storefront body.theme-beclean .topbar .utility-nav :is(a,button):focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.global-storefront body.theme-beclean .topbar .utility-nav .language-switcher-trigger:is(:hover,:focus-visible) { background: transparent; }
.global-storefront body.theme-beclean .topbar .utility-nav .language-switcher-option:is(:hover,:focus-visible,.is-active) { background: #f6f7f9; }
.global-storefront body.cast-search-open { background: #fff; padding-bottom: 0; }
.global-storefront .cast-search-open :is(.topbar,.app-home-bottom-nav,footer,.app-home-preferences,.app-home-guides,.gp-announcement,.gp-utility-strip) { display: none !important; }
html.global-storefront body.theme-beclean.cast-search-open main > :not(#castSearchPage) { display: none !important; }
/* Outrank the catalog's :not(#globalStorefront) visibility rule, even when its stylesheet loads later. */
html.global-storefront body.theme-beclean.cast-search-open main > #castSearchPage.cast-search-page:not([hidden]) { display: block !important; }
.global-storefront .cast-search-page[hidden] { display: none !important; }
.global-storefront .cast-search-page { width: 100%; padding: 0; background: #fff; color: #111; font-family: Pretendard,sans-serif; }
.global-storefront .cast-search-shell { max-width: 900px; margin: 0 auto; padding: 0 28px 64px; }
.global-storefront .cast-search-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 18px 0; background: #fff; }
.global-storefront .cast-search-back { display: grid; place-items: center; flex: 0 0 36px; width: 36px; min-width: 36px; height: 44px; border: 0; padding: 0; background: transparent; color: #111; font-size: 0; cursor: pointer; }
.global-storefront .cast-search-back::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.global-storefront .cast-search-field { display: flex; align-items: center; flex: 1; min-width: 0; height: 44px; margin: 0; padding-inline: 16px 8px; border: 0; border-radius: 4px; background: #f6f7f9; box-shadow: none; }
.global-storefront .cast-search-field input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; border-radius: 0; background: transparent; color: #111; font: 400 15px/1.4 Pretendard,sans-serif; box-shadow: none; appearance: none; }
.global-storefront .cast-search-field input::-webkit-search-cancel-button { display: none; }
.global-storefront .cast-search-field input::placeholder { color: #8e939c; font-weight: 500; }
.global-storefront .cast-search-field :is(.cast-search-clear,.cast-search-submit) { display: grid; place-items: center; width: 34px; height: 40px; flex: 0 0 34px; padding: 0; border: 0; background: transparent; color: #8e939c; cursor: pointer; font: 24px/1 Pretendard,sans-serif; }
.global-storefront .cast-search-submit .cast-app-icon { width: 20px; height: 20px; font-size: 20px !important; }
.global-storefront .cast-search-clear[hidden] { display: none; }
.global-storefront .cast-search-content > section { margin: 0 0 28px; }
.global-storefront .cast-search-content > .cast-search-products { margin-bottom: 48px; }
.global-storefront .cast-search-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-bottom: 10px; }
.global-storefront .cast-search-section-heading h2 { margin: 0; color: #111; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; }
.global-storefront :is(.cast-search-recent,.cast-search-popular) .cast-search-section-heading h2 { font-size: 19px; font-weight: 600; }
.global-storefront .cast-search-text-action { padding: 8px 0 8px 12px; border: 0; background: none; color: #8e939c; font: 400 13px/1.4 Pretendard,sans-serif; cursor: pointer; }
.global-storefront .cast-search-text-action:disabled { color: #b8bcc4; cursor: default; }
.global-storefront .cast-search-message { margin: 0; padding: 14px 0; color: #8e939c; font-size: 14px; line-height: 1.6; }
.global-storefront .cast-search-message > button { display: inline-block; margin-inline-start: 16px; border: 0; padding: 6px 10px; border-radius: 4px; background: #f6f7f9; color: #111; font: inherit; cursor: pointer; }
.global-storefront .cast-search-popular > .cast-search-message { padding: 14px 16px; border-radius: 4px; background: #f6f7f9; }
.global-storefront .cast-search-recent-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.global-storefront .cast-search-recent-chip { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 38px; gap: 6px; padding-inline: 12px 6px; border: 1px solid #eee; border-radius: 4px; }
.global-storefront .cast-search-recent-chip button { border: 0; padding: 0; background: none; color: #111; font: 400 14px/1.4 Pretendard,sans-serif; cursor: pointer; }
.global-storefront .cast-search-recent-chip button:first-child { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-storefront .cast-search-recent-chip button:last-child { width: 24px; height: 30px; color: #b8bcc4; font-size: 18px; }
.global-storefront .cast-search-updated { color: #8e939c; font-size: 13px; font-weight: 500; white-space: nowrap; }
.global-storefront .cast-search-keywords { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(var(--keyword-rows,5),auto); column-gap: 32px; }
.global-storefront .cast-search-keyword { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; border: 0; border-radius: 4px; padding: 7px 0; color: #111; background: transparent; text-align: start; font: 500 15px/1.4 Pretendard,sans-serif; cursor: pointer; }
.global-storefront .cast-search-rank { flex: 0 0 26px; }
.global-storefront .cast-search-keyword-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-storefront .cast-search-trend { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: #c4c7ce; }
.global-storefront .cast-search-trend.is-up { color: #e15757; }
.global-storefront .cast-search-trend.is-down { color: #4e88ff; }
.global-storefront .cast-search-trend.is-new { font-size: 10px; color: #8e939c; }
.global-storefront .cast-search-keyword-skeleton { height: 16px; margin-block: 13px; border-radius: 4px; background: #f0f0f0; }
.global-storefront .cast-search-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 36px 12px; }
.global-storefront .cast-search-product-grid .gp-card { min-width: 0; }
.global-storefront .cast-search-product-grid .gp-media { aspect-ratio: 1 !important; border-radius: 4px; }
.global-storefront .cast-search-entity { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; color: #111; text-decoration: none; }
.global-storefront .cast-search-entity > img,
.global-storefront .cast-search-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; background: #f6f7f9; }
.global-storefront .cast-search-avatar { display: grid; place-items: center; color: #8e939c; }
.global-storefront .cast-search-entity-copy { min-width: 0; flex: 1; }
.global-storefront .cast-search-entity strong { display: block; font-size: 14px; font-weight: 600; }
.global-storefront .cast-search-entity-copy > span { display: block; margin-top: 5px; color: #8e939c; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.global-storefront .cast-search-entity-action { flex-shrink: 0; padding: 8px 14px; border-radius: 4px; background: #111; color: #fff; font-size: 12px; font-weight: 600; }
.global-storefront .cast-search-seller-row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #f0f0f0; }
.global-storefront .cast-search-seller-row .cast-search-entity { flex: 1; min-width: 0; border-bottom: 0; }
.global-storefront .cast-search-seller-row button { border: 1px solid #111; font-family: inherit; cursor: pointer; }
.global-storefront .cast-search-seller-row button.is-following { border-color: #8e939c; background: #fff; color: #111; }
.global-storefront .cast-search-seller-row button:disabled { opacity: .5; cursor: wait; }
.global-storefront .cast-search-promo { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; margin: 4px 0 16px; padding: 10px 16px; border: 0; border-radius: 4px; background: #f6f7f9; color: #111; text-align: start; cursor: pointer; }
.global-storefront .cast-search-promo img { width: 44px; height: 44px; object-fit: contain; }
.global-storefront .cast-search-promo > span:first-of-type { flex: 1; }
.global-storefront .cast-search-promo strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.global-storefront .cast-search-promo span span { color: #8e939c; font-size: 12px; }
.global-storefront .cast-search-field[hidden],
.global-storefront .cast-search-view-title[hidden] { display: none !important; }
.global-storefront .cast-search-view-title { margin: 0; color: #111; font-size: 18px; line-height: 1.4; font-weight: 700; }
.global-storefront .cast-search-loading { display: grid; place-items: center; min-height: 50vh; }
.global-storefront .cast-search-spinner { box-sizing: border-box; width: 32px; height: 32px; border: 3px solid #eee; border-top-color: #555; border-radius: 50%; animation: cast-search-spin .8s linear infinite; }
@keyframes cast-search-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .global-storefront .cast-search-spinner { animation: none; } }
.global-storefront .cast-search-empty { padding-top: 28px; }
.global-storefront .cast-search-empty > .cast-search-message { text-align: center; font-size: 15px; font-weight: 600; }
.global-storefront .cast-search-request-brand { width: 100%; min-height: 48px; margin: 16px 0 32px; border: 0; border-radius: 4px; background: #e1e1e1; color: #111; font: 600 15px/1.4 Pretendard,sans-serif; cursor: pointer; }
.global-storefront .cast-search-subscription-grid { margin-bottom: 16px; }
.global-storefront .cast-search-subscription-card { display: flex; flex-direction: column; min-width: 0; border: 0; padding: 0; color: #111; background: transparent; text-align: start; cursor: pointer; font: inherit; }
.global-storefront .cast-search-subscription-card > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #f6f7f9; }
.global-storefront .cast-search-subscription-brand { margin-top: 10px; font-size: 12px; font-weight: 600; }
.global-storefront .cast-search-subscription-card > strong { margin-top: 5px; font-size: 14px; font-weight: 500; }
.global-storefront .cast-search-subscription-price { margin-top: 7px; font-size: 14px; font-weight: 700; }
.global-storefront .cast-search-media-heading { margin: 16px 2px 8px; color: #8e939c; font-size: 13px; font-weight: 700; }
.global-storefront .cast-search-media-grid { display: grid; gap: 6px; }
.global-storefront .cast-search-media-grid.is-shorts { grid-template-columns: repeat(3,minmax(0,1fr)); }
.global-storefront .cast-search-media-grid.is-feeds { grid-template-columns: repeat(2,minmax(0,1fr)); }
.global-storefront .cast-search-media-card { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 4px; background: #f6f7f9; color: #8e939c; }
.global-storefront .is-shorts .cast-search-media-card { aspect-ratio: .72; }
.global-storefront .cast-search-media-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.global-storefront .cast-search-media-placeholder { display: grid; place-items: center; height: 100%; font-size: 13px; }
.global-storefront .cast-search-play { position: absolute; inset-inline-end: 10px; bottom: 10px; color: #fff; font-size: 16px; text-shadow: 0 1px 4px #333; }
.global-storefront .cast-search-brand-request { box-sizing: border-box; width: min(480px,calc(100% - 32px)); border: 0; border-radius: 4px; padding: 24px; background: #fff; color: #111; box-shadow: 0 20px 80px #0002; }
.global-storefront .cast-search-brand-request::backdrop { background: #0006; }
.global-storefront .cast-search-brand-request h2 { margin: 0 36px 12px 0; font-size: 20px; font-weight: 600; }
.global-storefront .cast-search-brand-request p { color: #8e939c; font-size: 14px; }
.global-storefront .cast-search-brand-request label { display: block; margin-top: 24px; color: #8e939c; font-size: 13px; }
.global-storefront .cast-search-brand-request input { box-sizing: border-box; width: 100%; min-height: 50px; margin-top: 8px; border: 0; border-radius: 4px; padding: 14px; background: #f6f7f9; color: #111; font: 15px Pretendard,sans-serif; }
.global-storefront .cast-search-dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: #8e939c; font-size: 28px; cursor: pointer; }
.global-storefront .cast-search-request-submit { width: 100%; min-height: 48px; border: 0; border-radius: 4px; background: #111; color: #fff; font: 600 15px Pretendard,sans-serif; cursor: pointer; }
.global-storefront .cast-search-request-submit:disabled { opacity: .5; cursor: wait; }
.global-storefront .cast-search-page :is(a,button):focus-visible { outline: 2px solid #111; outline-offset: 3px; }
/* Desktop search keeps compact controls and uses the available horizontal space. */
@media (min-width:1024px) {
  .global-storefront .cast-search-shell { box-sizing: border-box; width: calc(100% - 80px); max-width: 1040px; padding: 32px 0 80px; }
  .global-storefront .cast-search-header { gap: 12px; padding: 12px 0 28px; }
  .global-storefront .cast-search-field { flex: 0 1 720px; height: 44px; margin-inline: auto; padding-inline: 16px 8px; }
  .global-storefront .cast-search-field input { font-size: 15px; }
  .global-storefront .cast-search-content > section { margin-bottom: 32px; }
  .global-storefront .cast-search-content > .cast-search-products { margin-bottom: 56px; }
  .global-storefront .cast-search-section-heading { min-height: 32px; margin-bottom: 12px; }
  .global-storefront .cast-search-content .cast-search-section-heading h2 { font-size: 17px; font-weight: 600; }
  .global-storefront .cast-search-text-action,
  .global-storefront .cast-search-updated { font-size: 12px; }
  .global-storefront .cast-search-message { font-size: 14px; }
  .global-storefront .cast-search-content:has(> .cast-search-recent) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 0 56px; align-items: start; }
  .global-storefront .cast-search-content:has(> .cast-search-recent) > .cast-search-promo { grid-column: 1 / -1; }
  .global-storefront .cast-search-content > :is(.cast-search-recent,.cast-search-popular) { min-width: 0; margin-bottom: 0; }
  .global-storefront .cast-search-recent-chips { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .global-storefront .cast-search-recent-chip { min-height: 32px; padding-inline: 12px 6px; }
  .global-storefront .cast-search-recent-chip button { font-size: 13px; }
  .global-storefront .cast-search-keywords { column-gap: 28px; }
  .global-storefront .cast-search-keyword { min-height: 38px; padding-block: 6px; border-radius: 4px; font-size: 14px; }
  .global-storefront .cast-search-keyword:hover { background: #f6f7f9; }
  .global-storefront .cast-search-rank { flex-basis: 22px; }
  .global-storefront .cast-search-promo { box-sizing: border-box; gap: 12px; min-height: 64px; margin: 0 0 32px; padding: 10px 16px; }
  .global-storefront .cast-search-promo img { width: 36px; height: 36px; }
  .global-storefront .cast-search-promo strong { margin-bottom: 4px; font-size: 13px; }
  .global-storefront .cast-search-promo span span { font-size: 12px; line-height: 1.5; }
  .global-storefront .cast-search-product-grid { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 48px 20px; }
  .global-storefront .cast-search-media-grid:is(.is-shorts,.is-feeds) { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 16px; }
}
@media (max-width:760px) {
  .global-storefront body.theme-beclean .topbar .utility-nav .gp-b2b-link { min-height: 30px; margin-inline-start: 4px; padding-inline: 8px; }
  .global-storefront .topbar .gp-b2b-suffix { display: none; }
  .global-storefront body.theme-beclean.page-shop.gp-app-ui .topbar .topbar-inner { grid-template-columns: auto minmax(0,1fr) auto !important; gap: 4px; }
  .global-storefront body.theme-beclean.page-shop.gp-app-ui .topbar .header-brand { min-width: 0; }
  .global-storefront body.theme-beclean.page-shop .topbar .gp-wordmark { width: 78px; max-width: 100%; }
  .global-storefront body.theme-beclean.page-shop .topbar .language-switcher--dropdown { width: auto; min-width: 0; }
  .global-storefront body.theme-beclean.page-shop .topbar .language-switcher-trigger { min-width: 0; padding-inline: 4px; gap: 4px; font-size: 11px; }
  .global-storefront .cast-search-shell { padding: 0 16px 32px; }
  .global-storefront .cast-search-header { gap: 8px; padding: 8px 0 16px; }
  .global-storefront .cast-search-back { flex-basis: 24px; width: 24px; }
  .global-storefront .cast-search-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 12px; }
  .global-storefront .cast-search-keywords { column-gap: 18px; }
  .global-storefront body.theme-beclean.app-home-page.cast-app-header .gp-search,
  .global-storefront body.theme-beclean.app-home-page.cast-app-header .gp-search:focus-within { background: transparent; }
}

@media (max-width:340px) {
  .global-storefront .page-shop .topbar .gp-app-gift { display: none; }
}
