/* Shop home first composition: brand strip + full-bleed hero, then compact catalogue.
   Palette stays on Moducopy ink/navy/red paper — no purple, cream, or broadsheet look. */
html.mc-shop-home {
  --mc-home-ink: #142238;
  --mc-home-muted: #5c6b7d;
  --mc-home-paper: #f3f6f9;
  --mc-home-line: #d5dee8;
  --mc-home-brand: #b61b3a;
  --mc-home-brand-deep: #8f142c;
}

html.mc-shop-home body.mc-shop-ui .basic-body {
  padding-top: 0 !important;
}

/* Keep the home hero flush under the header chrome. */
html.mc-shop-home .mc-home-stage {
  margin-top: 0;
}

html.mc-shop-home #mc-resource-links {
  margin-top: 0;
}

/* Brand + hero as one stage under the header. */
.mc-home-stage {
  position: relative;
  background: var(--mc-home-ink);
  color: #fff;
}

.mc-home-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(110deg, rgba(182, 27, 58, 0.22), transparent 42%),
    linear-gradient(180deg, #18263c 0%, #142238 100%);
}

.mc-home-brand-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px 28px;
  align-items: center;
  max-width: 1280px;
  min-height: 108px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.mc-home-brand-name {
  margin: 0;
  color: #fff;
  font: 800 34px/1 Pretendard, "Noto Sans KR", sans-serif;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.mc-home-brand-copy h1 {
  margin: 0 0 6px;
  color: #fff;
  font: 750 26px/1.25 Pretendard, "Noto Sans KR", sans-serif;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.mc-home-brand-copy p {
  margin: 0;
  max-width: 42em;
  color: rgba(236, 241, 247, 0.86);
  font: 500 15px/1.55 Pretendard, "Noto Sans KR", sans-serif;
  word-break: keep-all;
}

.mc-home-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mc-home-brand-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font: 700 14px/1.3 Pretendard, "Noto Sans KR", sans-serif;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mc-home-cta-primary {
  background: var(--mc-home-brand);
  color: #fff !important;
  border: 1px solid var(--mc-home-brand);
}

.mc-home-cta-primary:hover {
  background: var(--mc-home-brand-deep);
  border-color: var(--mc-home-brand-deep);
  color: #fff !important;
}

.mc-home-cta-secondary {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.mc-home-cta-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.mc-home-brand-actions a:focus-visible {
  outline: 3px solid #9cd4ff;
  outline-offset: 2px;
}

/* Hero media plane: edge-to-edge under the brand strip. */
html.mc-shop-home body.mc-shop-ui .shop-main-slider-top,
html.mc-shop-home body.mc-shop-ui:not(.mc-product-page) .shop-main-slider-top {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

html.mc-shop-home body.mc-shop-ui .shop-main-slider-top [class*="ebs-basic-wrap-"] {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #101821 !important;
}

html.mc-shop-home body.mc-shop-ui .shop-main-slider-top .ebs-basic.slick-initialized.slick-slider > .slick-list,
html.mc-shop-home body.mc-shop-ui .shop-main-slider-top img {
  border-radius: 0 !important;
}

html.mc-shop-home .mc-home-slider img {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .mc-home-brand-inner {
    animation: mc-home-brand-in 0.55s ease both;
  }

  .mc-home-slider {
    animation: mc-home-hero-in 0.7s ease 0.08s both;
  }
}

@keyframes mc-home-brand-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mc-home-hero-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-home-brand-inner,
  .mc-home-slider {
    animation: none !important;
  }
}

/* Category rail after the hero: compact, readable, not a first-viewport dashboard. */
html.mc-shop-home .mc-global-category {
  padding: 18px 18px 22px;
  background: #fff;
  border-bottom: 1px solid var(--mc-home-line);
}

html.mc-shop-home .mc-global-category::before {
  content: "인쇄 상품 고르기";
  display: block;
  max-width: 1280px;
  margin: 0 auto 12px;
  color: var(--mc-home-ink);
  font: 750 20px/1.3 Pretendard, "Noto Sans KR", sans-serif;
  letter-spacing: -0.035em;
}

html.mc-shop-home .mc-global-category-tools {
  margin-bottom: 8px;
}

html.mc-shop-home .mc-global-category-grid {
  border: 0;
  gap: 10px;
}

html.mc-shop-home .mc-global-category-tile {
  gap: 8px;
  padding: 10px 8px 8px;
  border: 1px solid var(--mc-home-line);
  border-radius: 4px;
  background: #fff;
}

html.mc-shop-home .mc-global-category-photo {
  height: 78px;
  background: var(--mc-home-paper);
}

html.mc-shop-home .mc-global-category-name {
  min-height: 22px;
  font-size: 15px;
  font-weight: 700;
}

html.mc-shop-home .mc-global-category-tile:hover,
html.mc-shop-home .mc-global-category-tile[aria-current="page"] {
  border-color: #e2a1b0;
  background: #fff8fa;
}

/* Order route sits after the catalogue as the next clear action band. */
html.mc-shop-home .mc-order-route {
  margin-top: 0;
  padding: 28px 0;
  background: var(--mc-home-paper);
  border-bottom: 1px solid var(--mc-home-line);
}

html.mc-shop-home .mc-order-route-steps li {
  border-radius: 4px;
  box-shadow: none;
}

html.mc-shop-home .mc-route-primary,
html.mc-shop-home .mc-route-secondary {
  border-radius: 4px;
}

@media (max-width: 991px) {
  .mc-home-brand-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: left;
  }

  .mc-home-brand-name {
    font-size: 28px;
  }

  .mc-home-brand-copy h1 {
    font-size: 22px;
  }

  .mc-home-brand-actions {
    justify-content: flex-start;
  }

  html.mc-shop-home .mc-global-category::before {
    font-size: 18px;
  }

  html.mc-shop-home .mc-global-category-photo {
    height: 68px;
  }
}

@media (max-width: 575px) {
  .mc-home-brand-name {
    font-size: 24px;
  }

  .mc-home-brand-copy h1 {
    font-size: 20px;
  }

  .mc-home-brand-copy p {
    font-size: 14px;
  }

  .mc-home-brand-actions {
    width: 100%;
  }

  .mc-home-brand-actions a {
    flex: 1 1 calc(50% - 5px);
  }

  html.mc-shop-home .mc-global-category {
    padding: 14px 10px 16px;
  }

  html.mc-shop-home .mc-global-category-photo {
    height: 58px;
  }

  html.mc-shop-home .mc-global-category-name {
    font-size: 14px;
  }
}

/* Dark theme stays readable when shoppers toggle it. */
@media screen {
  html.mc-shop-home[data-mc-shop-theme="dark"] .mc-home-stage,
  html.mc-shop-home[data-mc-shop-theme="dark"] .mc-home-brand {
    background: #171c22 !important;
    color: #f4f6f8 !important;
  }

  html.mc-shop-home[data-mc-shop-theme="dark"] .mc-home-brand-copy p {
    color: #c2ccd8 !important;
  }

  html.mc-shop-home[data-mc-shop-theme="dark"] .mc-global-category::before {
    color: #f4f6f8 !important;
  }
}
