/* =========================================
   Inner pages only: Header / Footer
   Scope: body.page-sub
========================================= */

body.page-sub {
  --sub-bg-header-top: linear-gradient(180deg, #fcfeff 0%, #f5f8fa 100%);
  --sub-bg-header-main: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  --sub-bg-brand: var(--color-brand-primary);
  --sub-bg-brand-hover: var(--color-brand-primary-hover);
  --sub-bg-footer:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #2a3b4c 0%, #1b2733 100%);

  --sub-text-main: #1f2b36;
  --sub-text-body: #26313b;
  --sub-text-muted: #687684;
  --sub-text-soft: #748190;
  --sub-text-link: #647282;
  --sub-text-placeholder: #95a1ac;

  --sub-border: #d7e1e8;
  --sub-border-soft: #dbe4ea;
  --sub-border-light: #e6edf2;

  --sub-bg-soft: #f5f8fa;
  --sub-bg-soft-blue: #edf4fa;
  --sub-bg-soft-blue-2: #e3edf7;
  --sub-bg-soft-blue-3: #ddebf7;
  --sub-bg-hover: #e7f0f8;

  --sub-radius-sm: 12px;
  --sub-radius-md: 14px;
  --sub-radius-pill: 9999px;

  --sub-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  --sub-shadow-brand: 0 6px 16px rgba(22, 49, 74, 0.14);
  --sub-shadow-soft: 0 6px 18px rgba(18, 39, 60, 0.05);
  --sub-shadow-focus: 0 0 0 3px rgba(47, 95, 143, 0.12);

  --sub-transition: 0.2s ease;
}

/* =========================================
   Header
========================================= */

body.page-sub .site-header {
  position: relative;
  z-index: 30;
  background: var(--sub-bg-header-top);
  border-bottom: 1px solid var(--sub-border-soft);
  box-shadow: 0 8px 24px rgba(18, 39, 60, 0.04);
}

body.page-sub .site-header__utility {
  background: var(--sub-bg-soft);
  border-bottom: 1px solid var(--sub-border-light);
}

body.page-sub .site-header__utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
}

body.page-sub .site-header__utility-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

body.page-sub .site-header__utility-nav a {
  color: var(--sub-text-muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
}

body.page-sub .site-header__utility-nav a:hover,
body.page-sub .breadcrumb__item a:hover {
  color: var(--color-brand-primary);
}

body.page-sub .site-header__main {
  background: var(--sub-bg-header-main);
}

body.page-sub .site-header__main-inner {
  display: grid;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

body.page-sub .site-header.is-search-enabled .site-header__main-inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

body.page-sub .site-header.is-search-disabled .site-header__main-inner {
  grid-template-columns: auto auto;
}

body.page-sub .site-header__brand {
  min-width: 0;
  width: 100%;
  max-width: clamp(180px, 22vw, 260px);
}

body.page-sub .site-brand {
  position: relative;
  display: block;
  width: 100%;
}

body.page-sub .site-header__logo {
  display: inline-flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  position: relative;
}

body.page-sub .site-brand__tagline {
  margin: 0;
  position: absolute;
  right: 8px;
  bottom: 3px;
  z-index: 1;
  color: #1f2937;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.96),
    0 0 4px rgba(255, 255, 255, 0.96);
  pointer-events: none;
}

body.page-sub .site-header__logo-image {
  display: block;
  width: 100%;
  min-width: 180px;
  max-width: 260px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

/* Search */

body.page-sub .site-header__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

body.page-sub .site-header__search input,
body.page-sub .site-header__search button {
  height: 46px;
  font-size: 14px;
}

body.page-sub .site-header__search input {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--sub-border);
  border-right: 0;
  border-radius: var(--sub-radius-md) 0 0 var(--sub-radius-md);
  background: #fff;
  color: var(--sub-text-body);
  box-shadow: var(--sub-shadow-inset);
}

body.page-sub .site-header__search input::placeholder {
  color: var(--sub-text-placeholder);
}

body.page-sub .site-header__search input:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: var(--sub-shadow-focus);
}

body.page-sub .site-header__search button {
  border: 0;
  border-radius: 0 var(--sub-radius-md) var(--sub-radius-md) 0;
  background: var(--sub-bg-brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sub-shadow-brand);
  transition: var(--sub-transition);
}

body.page-sub .site-header__search button:hover,
body.page-sub .site-header__apply:hover {
  background: var(--sub-bg-brand-hover);
  transform: translateY(-1px);
}

/* CTA */

body.page-sub .site-header__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.page-sub .site-header__cart,
body.page-sub .site-header__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--sub-radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--sub-transition);
}

body.page-sub .site-header__cart {
  border: 0;
  background: var(--sub-bg-soft-blue);
  color: var(--sub-text-body);
  box-shadow: inset 0 0 0 1px rgba(47, 95, 143, 0.04);
}

body.page-sub .site-header__cart.has-items {
  background: #ffd814;
  color: #2f2300;
  box-shadow: none;
  border: 1px solid rgba(173, 121, 0, 0.16);
  border-left-color: rgba(173, 121, 0, 0.28);
  border-top-color: rgba(173, 121, 0, 0.14);
  border-bottom-color: rgba(173, 121, 0, 0.14);
}

body.page-sub .site-header__cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

body.page-sub .site-header__cart-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

body.page-sub .site-header__cart-label {
  display: inline-flex;
  align-items: center;
}

body.page-sub .site-header__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #d4372a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(212, 55, 42, 0.28);
}

/* =========================================
   Common Back To Top
========================================= */

body.page-sub .common-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 36px;
  z-index: 79;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 95, 143, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #244a6d;
  box-shadow: 0 10px 24px rgba(32, 58, 82, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.page-sub .common-back-to-top:hover {
  border-color: rgba(47, 95, 143, 0.34);
  background: #ffffff;
}

body.page-sub .common-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.page-sub .common-back-to-top__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 0;
  line-height: 0;
}

body.page-sub .common-back-to-top__icon::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(1px) rotate(-45deg);
  transform-origin: center;
}

body.page-sub .common-back-to-top__label {
  font-size: var(--font-size-12);
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 767px) {
  body.page-sub .common-back-to-top {
    right: 12px;
    bottom: 20px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  body.page-sub .common-back-to-top__label {
    display: none;
  }

  body.page-sub .common-back-to-top__icon {
    width: 16px;
    height: 16px;
  }
}

body.page-sub .site-header__cart:hover {
  background: var(--sub-bg-soft-blue-2);
  color: var(--color-brand-primary);
  transform: translateY(-1px);
}

body.page-sub .site-header__cart.has-items:hover {
  background: #f7ca00;
  color: #241b00;
}

body.page-sub .site-header__apply {
  border: 0;
  background: var(--sub-bg-brand);
  color: #fff;
  box-shadow: var(--sub-shadow-brand);
}

/* Category Nav */

body.page-sub .site-header__category {
  padding: 0 0 12px;
}

body.page-sub .site-header__category-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-sub .site-header__category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--sub-radius-pill);
  background: var(--sub-bg-soft-blue-3);
  color: #34506d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(47, 95, 143, 0.04);
  transition: var(--sub-transition);
}

body.page-sub .site-header__category-nav a:hover {
  background: var(--sub-bg-hover);
  color: var(--color-brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 95, 143, 0.08);
}



/* =========================================
   Sticky Search (common for inner pages)
   top page の固定検索バーに合わせた背景・影・表示制御
========================================= */
/* 追従UIはこの共通CSSを基準に管理する。
   ページ別CSSで .sticky-search-shell / .sticky-cart-shell を直接上書きしない。 */

body.page-sub .sticky-search-shell {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  display: none;
  padding: 8px 16px;
  background: rgba(16, 33, 52, 0.86);
  border-bottom: 1px solid rgba(217, 226, 232, 0.95);
  box-shadow: 0 8px 24px rgba(18, 39, 60, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.page-sub .sticky-search-shell.is-visible {
  display: block;
}

body.page-sub .sticky-cart-shell {
  position: fixed;
  right: 0;
  top: 92px;
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity .18s ease, transform .18s ease;
}

body.page-sub .sticky-cart-shell.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.page-sub .sticky-cart-shell__inner {
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
}

body.page-sub .sticky-cart-shell__cart {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: 68px;
  min-width: 68px;
  height: 78px;
  min-height: 78px;
  padding: 6px 8px;
  border-radius: 18px 0 0 18px;
  text-decoration: none;
  background: #ffd814;
  color: #2f2300;
  box-shadow: none;
  border-left: 1px solid rgba(173, 121, 0, 0.28);
  border-top: 1px solid rgba(173, 121, 0, 0.14);
  border-bottom: 1px solid rgba(173, 121, 0, 0.14);
  border-right: 1px solid rgba(173, 121, 0, 0.16);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

body.page-sub .sticky-cart-shell__cart:hover {
  background: #f7ca00;
  color: #241b00;
}

body.page-sub .sticky-cart-shell__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

body.page-sub .sticky-cart-shell__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

body.page-sub .sticky-cart-shell__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.02em;
}

body.page-sub .sticky-cart-shell__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d4372a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(212, 55, 42, 0.28);
}

body.page-sub .sticky-cart-shell__apply {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 68px;
  min-width: 68px;
  height: 78px;
  min-height: 78px;
  padding: 6px 8px;
  border-radius: 18px 0 0 18px;
  background: var(--color-brand-primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 20px rgba(22, 49, 74, 0.18);
  transition: var(--sub-transition);
}

body.page-sub .sticky-cart-shell__apply-line {
  display: block;
  white-space: nowrap;
}

body.page-sub .sticky-cart-shell__apply:hover {
  background: var(--color-brand-primary-hover);
}

body.page-sub .sticky-search-inner {
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 0;
}

body.page-sub .sticky-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body.page-sub .sticky-search-bar--search-only {
  grid-template-columns: minmax(0, 1fr);
}

body.page-sub .sticky-search-shell--search-only .sticky-search-inner {
  width: min(calc(100% - 32px), 1120px);
}

body.page-sub .sticky-search-shell .main-search,
body.page-sub .main-search.main-search--sticky {
  max-width: none;
  width: 100%;
  margin: 0;
  justify-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 0;
  min-width: 0;
}

body.page-sub .sticky-search-shell .main-search input,
body.page-sub .sticky-search-shell .main-search button,
body.page-sub .main-search.main-search--sticky input,
body.page-sub .main-search.main-search--sticky button {
  height: 46px;
}

body.page-sub .main-search.main-search--sticky input,
body.page-sub .sticky-search-shell .main-search input {
  min-width: 0;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.99);
  color: var(--sub-text-body);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.page-sub .main-search.main-search--sticky input::placeholder,
body.page-sub .sticky-search-shell .main-search input::placeholder {
  color: #7a8691;
}

body.page-sub .main-search.main-search--sticky input:focus,
body.page-sub .sticky-search-shell .main-search input:focus {
  outline: none;
  border-color: #8bb7da;
  box-shadow: 0 0 0 4px rgba(139, 183, 218, 0.22);
}

body.page-sub .main-search.main-search--sticky button,
body.page-sub .sticky-search-shell .main-search button {
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--color-brand-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 49, 74, 0.22);
}

body.page-sub .main-search.main-search--sticky button:hover,
body.page-sub .sticky-search-shell .main-search button:hover {
  background: var(--color-brand-primary-hover);
}

body.page-sub .sticky-search-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, auto));
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body.page-sub .sticky-search-cta__cart,
body.page-sub .sticky-search-cta__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: var(--sub-transition);
}

body.page-sub .sticky-search-cta__cart {
  background: rgba(255, 255, 255, 0.94);
  color: var(--sub-text-body);
  box-shadow: inset 0 0 0 1px rgba(47, 95, 143, 0.06);
}

body.page-sub .sticky-search-cta__cart.has-items {
  background: #ffd814;
  color: #2f2300;
  box-shadow:
    0 12px 26px rgba(155, 112, 0, 0.24),
    inset 0 0 0 1px rgba(161, 117, 0, 0.3);
}

body.page-sub .sticky-search-cta__cart-label {
  display: inline-flex;
  align-items: center;
}

body.page-sub .sticky-search-cta__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #d4372a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(212, 55, 42, 0.28);
}

body.page-sub .sticky-search-cta__cart:hover {
  background: #ffffff;
  color: var(--color-brand-primary);
}

body.page-sub .sticky-search-cta__cart.has-items:hover {
  background: #f7ca00;
  color: #241b00;
}

body.page-sub .sticky-search-cta__apply {
  background: var(--color-brand-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 49, 74, 0.22);
}

body.page-sub .sticky-search-cta__apply:hover {
  background: var(--color-brand-primary-hover);
}

/* =========================================
   Breadcrumb
========================================= */

body.page-sub .breadcrumb {
  padding: 12px 0 0;
}

body.page-sub .breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-sub .breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sub-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

body.page-sub .breadcrumb__item:not(:last-child)::after {
  content: ">";
  color: #a8b5c0;
}

body.page-sub .breadcrumb__item a {
  color: var(--sub-text-link);
  text-decoration: none;
}

body.page-sub .breadcrumb__item span {
  color: var(--sub-text-main);
  font-weight: 700;
}

/* =========================================
   Footer
========================================= */

body.page-sub .site-footer {
  margin-top: 48px;
  background: var(--sub-bg-footer);
  color: #fff;
}

body.page-sub .site-footer__main {
  padding: 40px 0 28px;
}

body.page-sub .site-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 1fr 1fr 1fr;
  gap: 28px;
}

body.page-sub .site-footer__logo {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.page-sub .site-footer__tagline {
  margin: -2px 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.page-sub .site-footer__text {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.8;
}

body.page-sub .site-footer__operator {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

body.page-sub .site-footer__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

body.page-sub .site-footer__block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-sub .site-footer__block li + li {
  margin-top: 8px;
}

body.page-sub .site-footer__block a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.7;
  transition: var(--sub-transition);
}

body.page-sub .site-footer__block a:hover {
  color: #d7ebf7;
}

body.page-sub .site-footer__bottom {
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.page-sub .site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.page-sub .site-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

body.page-sub .site-footer__marks {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

body.page-sub .site-footer__mark {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
}

.cart-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  max-width: min(320px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffe7a3;
  color: #5a4300;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow:
    0 18px 40px rgba(193, 140, 6, 0.24),
    inset 0 0 0 1px rgba(173, 121, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cart-toast.is-error {
  background: rgba(156, 40, 30, 0.96);
  box-shadow: 0 18px 40px rgba(156, 40, 30, 0.28);
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1023px) {
  body.page-sub .site-header.is-search-enabled .site-header__main-inner {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  body.page-sub .site-header.is-search-disabled .site-header__main-inner {
    grid-template-columns: minmax(180px, 220px) auto;
  }

  body.page-sub .site-header.is-search-enabled .site-header__main-inner,
  body.page-sub .site-header.is-search-disabled .site-header__main-inner {
    gap: 14px 16px;
    min-height: 70px;
  }

  body.page-sub .site-header__brand {
    max-width: clamp(180px, 28vw, 220px);
  }

  body.page-sub .site-header__logo-image {
    min-width: 0;
    width: clamp(180px, 26vw, 220px);
    max-width: 100%;
    max-height: none;
  }

  body.page-sub .site-header__cta {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  body.page-sub .sticky-search-shell {
    padding: 8px 12px;
  }

  body.page-sub .sticky-search-inner {
    width: min(calc(100% - 24px), 1120px);
  }

  body.page-sub .sticky-search-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  body.page-sub .main-search.main-search--sticky,
  body.page-sub .sticky-search-shell .main-search {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  body.page-sub .main-search.main-search--sticky input,
  body.page-sub .main-search.main-search--sticky button,
  body.page-sub .sticky-search-shell .main-search input,
  body.page-sub .sticky-search-shell .main-search button {
    height: 44px;
    font-size: 13px;
  }

  body.page-sub .sticky-search-cta {
    grid-template-columns: repeat(2, minmax(88px, auto));
    gap: 8px;
  }

  body.page-sub .sticky-search-cta__cart,
  body.page-sub .sticky-search-cta__apply {
    min-width: 88px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  body.page-sub .sticky-cart-shell {
    top: 84px;
  }

  body.page-sub .sticky-cart-shell__cart,
  body.page-sub .sticky-cart-shell__apply {
    width: 64px;
    min-width: 64px;
    height: 72px;
    min-height: 72px;
  }

  body.page-sub .sticky-cart-shell__apply {
    padding: 6px 8px;
    font-size: 13px;
  }

  body.page-sub .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  body.page-sub .site-header__utility {
    display: none;
  }

  body.page-sub .site-footer__bottom-inner {
    gap: 8px;
  }

  body.page-sub .site-footer__copyright {
    order: 2;
    width: 100%;
  }

  body.page-sub .site-footer__marks {
    order: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  body.page-sub .site-footer__mark {
    max-width: min(200px, 100%);
    height: auto;
  }

  body.page-sub .site-header.is-search-enabled .site-header__main-inner,
  body.page-sub .site-header.is-search-disabled .site-header__main-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

  body.page-sub .site-header__brand {
    max-width: none;
    text-align: center;
  }

  body.page-sub .site-header__logo {
    justify-content: center;
  }

  body.page-sub .site-header__logo-image {
    width: clamp(168px, 56vw, 220px);
    min-width: 0;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
    object-position: center;
  }

  body.page-sub .site-header__search {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  body.page-sub .site-header__search input,
  body.page-sub .site-header__search button {
    height: 44px;
    font-size: 13px;
  }

  body.page-sub .site-header__search input {
    padding: 0 14px;
  }

  body.page-sub .site-header__cta {
    justify-content: stretch;
    gap: 8px;
  }

  body.page-sub .site-header__cart,
  body.page-sub .site-header__apply {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.page-sub .site-header__category {
    padding-bottom: 10px;
  }

  body.page-sub .site-header__category-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-sub .site-header__category-nav a {
    min-height: 34px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12px;
  }

  body.page-sub .sticky-search-shell {
    padding: 8px 0;
  }

  body.page-sub .sticky-search-inner {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  body.page-sub .sticky-search-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.page-sub .sticky-search-bar--search-only {
    grid-template-columns: 1fr;
  }

  body.page-sub .main-search.main-search--sticky,
  body.page-sub .sticky-search-shell .main-search {
    grid-template-columns: minmax(0, 1fr) 84px;
  }

  body.page-sub .main-search.main-search--sticky input,
  body.page-sub .main-search.main-search--sticky button,
  body.page-sub .sticky-search-shell .main-search input,
  body.page-sub .sticky-search-shell .main-search button {
    height: 42px;
    font-size: 13px;
  }

  body.page-sub .main-search.main-search--sticky input,
  body.page-sub .sticky-search-shell .main-search input {
    padding: 0 14px;
  }

  body.page-sub .sticky-search-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  body.page-sub .sticky-search-cta__cart,
  body.page-sub .sticky-search-cta__apply {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.page-sub .sticky-cart-shell {
    top: 72px;
    right: 0;
  }

  body.page-sub .sticky-cart-shell__inner {
    gap: 4px;
    width: auto;
    max-width: none;
    padding: 0;
  }

  body.page-sub .sticky-cart-shell__cart,
  body.page-sub .sticky-cart-shell__apply {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    flex: 0 0 72px;
    height: 66px;
    min-height: 66px;
    max-height: 66px;
    padding: 5px 6px;
    border-radius: 14px 0 0 14px;
    box-sizing: border-box;
  }

  body.page-sub .sticky-cart-shell__icon {
    width: 16px;
    height: 16px;
  }

  body.page-sub .sticky-cart-shell__icon svg {
    width: 14px;
    height: 14px;
  }

  body.page-sub .sticky-cart-shell__count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 13px;
  }

  body.page-sub .sticky-cart-shell__cart {
    gap: 4px;
  }

  body.page-sub .sticky-cart-shell__apply {
    font-size: 12px;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  body.page-sub .breadcrumb {
    padding-top: 10px;
  }

  body.page-sub .site-footer {
    margin-top: 40px;
  }

  body.page-sub .site-footer__main {
    padding: 34px 0 24px;
  }

  body.page-sub .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.page-sub .site-footer__logo {
    font-size: 22px;
  }
}

@media (max-width: 479px) {
  body.page-sub .sticky-cart-shell {
    right: 0;
  }

  body.page-sub .sticky-cart-shell__cart,
  body.page-sub .sticky-cart-shell__apply {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
    flex: 0 0 68px;
    height: 62px;
    min-height: 62px;
    max-height: 62px;
  }

  .cart-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    padding: 12px 14px;
    font-size: 12px;
  }

  body.page-sub .site-header__logo-image {
    width: clamp(152px, 58vw, 190px);
  }

  body.page-sub .sticky-search-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.page-sub .main-search.main-search--sticky,
  body.page-sub .sticky-search-shell .main-search {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  body.page-sub .main-search.main-search--sticky input,
  body.page-sub .main-search.main-search--sticky button,
  body.page-sub .sticky-search-shell .main-search input,
  body.page-sub .sticky-search-shell .main-search button {
    height: 40px;
    font-size: 12px;
  }

  body.page-sub .sticky-search-cta {
    gap: 6px;
  }

  body.page-sub .sticky-search-cta__cart,
  body.page-sub .sticky-search-cta__apply {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }

  body.page-sub .sticky-cart-shell {
    right: 0;
    top: 72px;
  }

  body.page-sub .sticky-cart-shell__inner {
    width: auto;
    max-width: none;
    padding: 0;
  }
}




/* ===== Fix: Header logo balance ===== */
@media (min-width: 1024px) {
  body.page-sub .site-header__main-inner {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) auto;
    gap: 20px 24px;
  }

  body.page-sub .site-header__brand {
    max-width: clamp(220px, 22vw, 260px);
  }

  body.page-sub .site-header__logo-image {
    width: clamp(220px, 21vw, 260px);
    min-width: 0;
    max-width: 100%;
  }

  body.page-sub .site-header__search {
    width: 100%;
    max-width: 560px;
    justify-self: stretch;
  }

  body.page-sub .site-header__cta {
    gap: 12px;
    white-space: nowrap;
  }
}

/* ===== Fix: Header layout balance ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  body.page-sub .site-header.is-search-enabled .site-header__main-inner {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    align-items: center;
  }

  body.page-sub .site-header.is-search-disabled .site-header__main-inner {
    grid-template-columns: minmax(180px, 220px) auto;
    align-items: center;
  }

  body.page-sub .site-header__brand {
    max-width: clamp(180px, 28vw, 220px);
  }

  body.page-sub .site-header__logo-image {
    width: clamp(180px, 26vw, 220px);
  }

  body.page-sub .site-header__search {
    grid-column: 2;
    width: 100%;
    max-width: none;
  }

  body.page-sub .site-header__cta {
    grid-column: 2;
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===== Fix: Mobile layout ===== */
@media (max-width: 767px) {
  body.page-sub .site-header__main-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.page-sub .site-header__brand {
    width: 100%;
    text-align: center;
  }

  body.page-sub .site-header__cta {
    width: 100%;
  }

  body.page-sub .site-header__cart,
  body.page-sub .site-header__apply {
    flex: 1;
  }
}
