/* StorePage / ProductCategoryBrowser: a desktop directory and a full-screen mobile browser. */
.cast-category-route body { margin: 0; padding: 0 !important; overflow: hidden; background: #fff; }
.cast-category-route body > :not(.shop-category-page):not(script):not(style):not(link) { display: none !important; }
.global-storefront .shop-category-dialog.shop-category-page {
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.global-storefront .shop-category-dialog-header h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.global-storefront .shop-category-dialog-header { flex: 0 0 auto; gap: 24px; padding: 0 32px; min-height: 76px; }
.global-storefront .shop-category-tabs { align-items: stretch; gap: 32px; }
.global-storefront .shop-category-tabs button { min-height: 76px; padding: 0 2px; font-size: 20px; font-weight: 400; }
.global-storefront .shop-category-tabs [aria-selected='true'] { font-weight: 700; }
.global-storefront .shop-category-close { display: grid; place-items: center; width: 44px; min-height: 44px; margin-inline-start: 0; padding: 0; color: #111; font-size: 36px; font-weight: 300; line-height: 1; }
.global-storefront .shop-category-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: 220px minmax(0, 1fr);
}
.global-storefront .shop-category-sidebar { position: relative; min-height: 0; padding: 14px 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: #f7f7f7; }
.global-storefront .shop-category-sidebar button { flex-shrink: 0; min-height: 56px; padding: 17px 28px; font-size: 15px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.global-storefront .shop-category-sidebar button[aria-pressed='true'] { box-shadow: none; }
.global-storefront .shop-category-detail { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 36px 36px; scrollbar-width: thin; }
.global-storefront .shop-category-section { margin: 0 0 28px; }
.global-storefront .shop-category-section h3 { margin: 0; padding: 22px 0 16px; }
.global-storefront .shop-category-parent-link { align-items: center; justify-content: flex-start; gap: 12px; min-height: 44px; font-size: 18px; line-height: 1.3; }
.global-storefront .shop-category-parent-link .shop-category-picture { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px; }
.global-storefront .shop-category-parent-link .shop-category-picture img { object-fit: contain; }
.global-storefront .shop-category-parent-link .shop-category-name { min-width: 0; color: #111; font-size: inherit; font-weight: 700; overflow-wrap: anywhere; }
.global-storefront .shop-category-parent-link .shop-category-chevron { color: #999; font-size: 22px; }
.global-storefront .shop-category-detail-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.global-storefront .shop-category-detail-links a { min-height: 48px; padding: 12px 0; color: #222; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.global-storefront .shop-category-dialog-body > .shop-category-message { grid-column: 1 / -1; padding: 24px; }
.global-storefront .shop-category-dialog-body.is-brands { min-height: 0; max-height: none; padding: 0 32px 32px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.global-storefront .shop-category-brand-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.global-storefront .shop-category-brand-list li { min-width: 0; padding: 28px 0; border-bottom: 1px solid #eee; }
.global-storefront .shop-category-brand-list li + li { border-top: 0; }
.global-storefront .shop-category-brand-list .shop-category-brand-heading { min-height: 54px; gap: 12px; }
.global-storefront .shop-category-brand-number { width: 22px; font-size: 15px; font-weight: 500; color: #111; }
.global-storefront .shop-category-brand-avatar { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; overflow: hidden; border: .6px solid #eee; border-radius: 50%; background: #fafafa; }
.global-storefront .shop-category-brand-avatar img { width: 100%; height: 100%; object-fit: contain; }
.global-storefront .shop-category-brand-identity { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.global-storefront .shop-category-brand-identity strong { font-size: 16px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.global-storefront .shop-category-brand-identity > span { font-size: 12px; font-weight: 400; color: #777; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.global-storefront .shop-category-brand-more { flex-shrink: 0; color: #777; font-size: 12px; font-weight: 400; }
.global-storefront .shop-category-brand-products { display: flex; gap: 12px; overflow-x: auto; margin-top: 18px; padding-bottom: 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.global-storefront .shop-category-brand-products > .gp-card { flex: 0 0 144px; width: 144px; min-width: 0; }
.global-storefront .shop-category-brand-products .gp-card a { min-height: 0; gap: 0; font-weight: 400; }
.global-storefront .shop-category-brand-products .gp-card .gp-media { display: flex; aspect-ratio: 1; padding: 0; }
.global-storefront .shop-category-brand-products .gp-card .gp-card-brand { display: block; font-size: 11px; font-weight: 600; }
.global-storefront .shop-category-brand-products .gp-card .gp-card-title { display: -webkit-box; min-height: 38px; font-size: 12px; line-height: 1.5; }
.global-storefront .shop-category-product-skeleton { flex: 0 0 144px; height: 218px; background: #f3f3f3; border-radius: 4px; }
.global-storefront .shop-category-brand-skeleton { height: 292px; margin: 28px 0; background: #f3f3f3; border-radius: 4px; }
.global-storefront .shop-category-preview-retry { min-height: 44px; border: 1px solid #ddd; border-radius: 4px; padding: 8px 16px; background: #fff; color: #555; font: 13px Pretendard, sans-serif; cursor: pointer; }
.global-storefront .shop-category-dialog :is(a, button, [tabindex='0']):focus-visible { outline: 2px solid #111; outline-offset: -2px; }
@media (max-width: 900px) and (min-width: 761px) {
  .global-storefront .shop-category-dialog-body { grid-template-columns: 180px minmax(0, 1fr); }
  .global-storefront .shop-category-detail-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-storefront .shop-category-brand-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .global-storefront .shop-category-dialog-header { min-height: 54px; padding: env(safe-area-inset-top, 0px) 14px 0; }
  .global-storefront .shop-category-tabs { gap: 28px; }
  .global-storefront .shop-category-tabs button { min-height: 54px; font-size: 14px; padding: 0; }
  .global-storefront .shop-category-tabs [aria-selected='true'] { box-shadow: inset 0 -1.5px #111; }
  .global-storefront .shop-category-close { width: 40px; min-height: 44px; font-size: 32px; }
  .global-storefront .shop-category-dialog-body { grid-template-columns: clamp(106px, 32vw, 160px) minmax(0, 1fr); }
  .global-storefront .shop-category-sidebar { padding: 0 0 env(safe-area-inset-bottom, 0px); scrollbar-width: none; }
  .global-storefront .shop-category-sidebar button { min-height: 49px; padding: 15px 14px; font-size: 14px; }
  .global-storefront .shop-category-detail { padding: 0 12px calc(32px + env(safe-area-inset-bottom, 0px)) 18px; scrollbar-width: none; }
  .global-storefront .shop-category-section { margin-bottom: 24px; }
  .global-storefront .shop-category-section h3 { padding: 14px 0 12px; }
  .global-storefront .shop-category-parent-link { flex-direction: row; min-height: 50px; gap: 10px; padding: 8px 0; font-size: 16px; }
  .global-storefront .shop-category-parent-link .shop-category-picture { flex-basis: 34px; width: 34px; height: 34px; }
  .global-storefront .shop-category-parent-link .shop-category-chevron { font-size: 20px; }
  .global-storefront .shop-category-detail-links { grid-template-columns: 1fr; gap: 0; margin: 0; }
  .global-storefront .shop-category-detail-links a { min-height: 51px; padding: 15px 0; font-size: 15px; }
  .global-storefront .shop-category-dialog-body.is-brands { padding: 0 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .global-storefront .shop-category-brand-list { display: block; }
  .global-storefront .shop-category-brand-list li { padding: 22px 0; }
  .global-storefront .shop-category-brand-list .shop-category-brand-heading { gap: 10px; }
  .global-storefront .shop-category-brand-avatar { flex-basis: 50px; width: 50px; height: 50px; }
  .global-storefront .shop-category-brand-number { width: 18px; }
  .global-storefront .shop-category-brand-identity strong { font-size: 15px; }
  .global-storefront .shop-category-brand-identity > span { font-size: 11px; }
  .global-storefront .shop-category-brand-products { margin-top: 14px; }
  .global-storefront .shop-category-brand-products > .gp-card { flex-basis: clamp(140px, 37.8vw, 176px); width: clamp(140px, 37.8vw, 176px); }
}

/* Match StorePage: split category panes and a carousel above numbered brand sections. */
.global-storefront .shop-category-brand-list { display: block; }
.global-storefront .shop-category-brand-more { margin-inline-start: auto; }
.global-storefront .shop-brand-hero { position: relative; margin: 12px -32px 8px; }
.global-storefront .shop-brand-hero-rail {
  display: flex;
  position: relative;
  gap: 6px;
  padding: 0 6.5%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6.5%;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.global-storefront .shop-brand-hero-rail::-webkit-scrollbar { display: none; }
/* Preserve the shared event carousel's continuous drag-to-glide handoff here too. */
.global-storefront .shop-brand-hero-rail.is-event-dragging,
.global-storefront .shop-brand-hero-rail.is-event-gliding { scroll-snap-type: none; scroll-behavior: auto; }
.global-storefront .shop-brand-hero-rail.is-event-dragging,
.global-storefront .shop-brand-hero-rail.is-event-dragging .shop-brand-hero-card { cursor: grabbing; }
.global-storefront .shop-brand-hero-card {
  display: block;
  position: relative;
  flex: 0 0 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 4px;
  background: #f4f4f4;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  transform: translateY(8px) scale(.94);
  transform-origin: top center;
  transition: transform .62s cubic-bezier(.22, 1, .36, 1);
}
.global-storefront .shop-brand-hero-card.is-featured-active { transform: none; }
.global-storefront .shop-brand-hero-card > img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.global-storefront .shop-brand-hero-caption {
  display: flex;
  position: absolute;
  inset: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(transparent 30%, #000c);
}
.global-storefront .shop-brand-hero-caption strong { font-size: 26px; font-weight: 800; line-height: 1.25; }
.global-storefront .shop-brand-hero-caption > span { font-size: 14px; line-height: 1.5; }
/* Arrows share the home event controls, including SVG, hover, focus and RTL styles. */
@media (min-width: 761px) {
  .global-storefront .shop-category-dialog.shop-category-page { width: min(100%, 1120px); margin-inline: auto; }
  .global-storefront .shop-category-dialog-header { min-height: 76px; border-bottom: 1px solid #eee; }
  .global-storefront .shop-category-dialog-body { grid-template-columns: 220px minmax(0, 1fr); }
  .global-storefront .shop-category-detail-links { grid-template-columns: 1fr; }
  .global-storefront .shop-category-detail { padding-inline: 36px; }
  .global-storefront .shop-category-section { margin-bottom: 24px; }
  .global-storefront .shop-category-section h3 { padding-top: 20px; padding-bottom: 10px; }
  .global-storefront .shop-category-detail-links a { min-height: 44px; padding: 10px 0; }
  .global-storefront .shop-category-brand-list li { display: block; padding-block: 28px; }
  .global-storefront .shop-category-brand-products { gap: 16px; margin-top: 18px; }
  .global-storefront .shop-category-brand-products > .gp-card { flex: 0 0 calc((100% - 64px) / 5); width: calc((100% - 64px) / 5); }
  .global-storefront .shop-category-product-skeleton { flex: 0 0 calc((100% - 64px) / 5); }
  .global-storefront .shop-category-brand-products .gp-card .gp-card-brand { font-size: 12px; }
  .global-storefront .shop-category-brand-products .gp-card .gp-card-title { font-size: 13px; line-height: 1.5; }
}
@media (max-width: 760px) {
  .global-storefront .shop-brand-hero { margin: 12px -16px 2px; }
  .global-storefront .shop-brand-hero-card { height: clamp(242px, 73.3vw, 336px); }
  .global-storefront .shop-brand-hero-caption { padding: 18px; gap: 6px; }
  .global-storefront .shop-brand-hero-caption strong { font-size: 22px; }
  .global-storefront .shop-brand-hero-caption > span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .global-storefront .shop-brand-hero-card { transition: none; }
}
