/*
Theme Name: SEU Shop
Theme URI: https://seu.co.kr
Author: Ops Hub
Description: Coupang shopping comparison report theme for SEU.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: seu-shop
*/

:root {
  --seu-ink: #111827;
  --seu-muted: #5f6b76;
  --seu-field: #eef3f4;
  --seu-paper: #ffffff;
  --seu-line: #cfd8dc;
  --seu-line-dark: #24313a;
  --seu-route: #008c95;
  --seu-route-dark: #00666c;
  --seu-signal: #f4b63f;
  --seu-coral: #eb5a46;
  --seu-soft-coral: #fff1ee;
  --seu-max: 1160px;
  --seu-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  letter-spacing: 0;
}

body {
  margin: 0;
  color: var(--seu-ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--seu-field);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.74;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

.seu-shell {
  min-height: 100vh;
}

.seu-topbar {
  border-top: 4px solid var(--seu-ink);
  border-bottom: 1px solid var(--seu-line);
  background: rgba(255, 255, 255, 0.97);
}

.seu-topbar__inner,
.seu-main,
.seu-footer__inner {
  width: min(var(--seu-max), calc(100% - 32px));
  margin: 0 auto;
}

.seu-topbar__inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.seu-brand {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--seu-ink);
  font-weight: 900;
  text-decoration: none;
  min-width: 0;
}

.seu-brand__mark {
  display: grid;
  width: 56px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--seu-ink);
  background: var(--seu-signal);
  color: var(--seu-ink);
  font-size: 0.78rem;
  line-height: 1;
}

.seu-brand__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.seu-brand__name {
  font-size: 1.12rem;
  line-height: 1;
}

.seu-brand__tagline {
  color: var(--seu-muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
}

.seu-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 850;
}

.seu-nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid transparent;
  padding: 0 10px;
  color: var(--seu-ink);
  text-decoration: none;
}

.seu-nav a:hover {
  border-color: var(--seu-line-dark);
  background: #fff;
}

.seu-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-bottom: 1px solid var(--seu-line);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62)),
    url("assets/hero-board.png") center / cover,
    var(--seu-ink);
  color: #fff;
}

.seu-hero__inner {
  position: relative;
  width: min(var(--seu-max), calc(100% - 32px));
  min-height: 360px;
  margin: 0 auto;
  padding: 58px 0 64px;
}

.seu-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0 10px;
  background: rgba(0, 140, 149, 0.86);
  font-size: 0.78rem;
  font-weight: 950;
}

.seu-hero h1 {
  margin: 0;
  font-size: 4.75rem;
  line-height: 1;
  font-weight: 950;
}

.seu-hero p:not(.seu-kicker) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  font-weight: 700;
  word-break: keep-all;
}

.seu-hero__mark {
  position: absolute;
  right: 0;
  bottom: -24px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 8.4rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.seu-main {
  padding: 30px 0 64px;
}

.seu-home-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: -54px 0 26px;
  position: relative;
  z-index: 2;
  border: 2px solid var(--seu-ink);
  background: var(--seu-paper);
  box-shadow: 8px 8px 0 var(--seu-signal);
}

.seu-home-brief div {
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: center;
  border-right: 1px solid var(--seu-line);
  padding: 16px 18px;
}

.seu-home-brief div:last-child {
  border-right: 0;
}

.seu-home-brief strong {
  color: var(--seu-route-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.seu-home-brief span {
  font-size: 1rem;
  font-weight: 900;
}

.seu-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 18px;
  border-bottom: 2px solid var(--seu-ink);
  padding-bottom: 10px;
}

.seu-section-head h1,
.seu-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.seu-section-head p {
  margin: 0;
  color: var(--seu-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.seu-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seu-post-card {
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--seu-line);
  border-top: 4px solid var(--seu-route);
  border-radius: var(--seu-radius);
  background: var(--seu-paper);
  padding: 18px;
}

.seu-post-card__date {
  color: var(--seu-route-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.seu-post-card h2,
.seu-post-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
  word-break: keep-all;
}

.seu-post-card p {
  margin: 0;
  color: var(--seu-muted);
  font-size: 0.88rem;
}

.seu-post-card__link {
  margin-top: auto;
  color: var(--seu-route-dark);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.seu-content {
  background: var(--seu-paper);
  border: 1px solid var(--seu-line);
  padding: 34px;
}

.seu-content h1 {
  margin: 0 0 14px;
  font-size: 2.6rem;
  line-height: 1.18;
}

.seu-content h2 {
  margin: 42px 0 14px;
  border-top: 2px solid var(--seu-ink);
  padding-top: 18px;
  font-size: 1.62rem;
  line-height: 1.3;
}

.seu-content h3 {
  margin: 28px 0 10px;
  font-size: 1.22rem;
}

.seu-content p,
.seu-content li {
  font-size: 1.06rem;
}

.seu-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  border-top: 2px solid var(--seu-ink);
  border-bottom: 1px solid var(--seu-line);
  background: var(--seu-paper);
  font-size: 0.94rem;
}

.seu-content th,
.seu-content td {
  border-bottom: 1px solid var(--seu-line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.seu-content th {
  background: #18232d;
  color: #fff;
  font-weight: 850;
}

.seu-affiliate-disclosure {
  position: relative;
  width: fit-content;
  max-width: 760px;
  margin: 0 0 18px;
  border: 1px solid rgba(0, 140, 149, 0.2);
  border-left: 4px solid var(--seu-route);
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  color: #344453;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.55;
}

.seu-affiliate-disclosure::before {
  content: "제휴 안내";
  display: inline-block;
  margin-right: 8px;
  color: var(--seu-route-dark);
  font-size: 0.72rem;
  font-weight: 950;
}

.seu-coupang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.seu-coupang-card {
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  gap: 0;
  margin: 26px 0 32px;
  overflow: hidden;
  border: 1px solid var(--seu-line);
  border-left: 6px solid var(--seu-signal);
  border-radius: var(--seu-radius);
  background: var(--seu-paper);
}

.seu-coupang-card__image {
  display: grid;
  min-height: 190px;
  place-items: center;
  background: #dde6e8;
  padding: 16px;
}

.seu-coupang-card__image img {
  width: 100%;
  height: 100%;
  max-height: 170px;
  object-fit: contain;
}

.seu-coupang-card__body {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 18px;
}

.seu-coupang-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  word-break: keep-all;
}

.seu-coupang-card h3::before {
  content: "PICK";
  display: inline-flex;
  margin-right: 8px;
  border: 1px solid var(--seu-line-dark);
  padding: 2px 5px;
  color: var(--seu-muted);
  font-size: 0.66rem;
  font-weight: 950;
  vertical-align: 2px;
}

.seu-coupang-card__meta {
  margin: 0;
  color: var(--seu-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.seu-coupang-card__price {
  margin: 0;
  color: var(--seu-coral);
  font-size: 1.08rem;
  font-weight: 950;
}

.seu-coupang-card__features {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #303841;
  font-size: 0.9rem;
  list-style: none;
}

.seu-coupang-card__features li {
  position: relative;
  padding-left: 16px;
  line-height: 1.48;
}

.seu-coupang-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--seu-route);
}

.seu-coupang-cta,
.seu-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--seu-ink);
  color: #fff;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
}

.seu-coupang-cta:hover,
.seu-button:hover {
  background: var(--seu-route-dark);
}

.shop-product-block {
  margin: 34px 0 42px;
}

.shop-product-brief,
.shop-faq-item {
  margin: 18px 0 20px;
  border: 1px solid var(--seu-line);
  border-top: 3px solid var(--seu-route);
  background: var(--seu-paper);
  padding: 18px 20px;
}

.shop-product-brief p,
.shop-faq-item p {
  margin: 0;
}

.seu-footer {
  background: var(--seu-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 30px 0;
}

.seu-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
}

.seu-footer strong {
  color: #fff;
}

.seu-article-main {
  width: 100%;
  max-width: none;
  padding: 0 0 72px;
}

.seu-article {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--seu-field);
}

.seu-article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--seu-signal);
  background: var(--seu-ink);
  color: #fff;
}

.seu-article-hero::after {
  content: "SEU";
  position: absolute;
  right: max(18px, calc((100vw - var(--seu-max)) / 2));
  bottom: -30px;
  color: rgba(255, 255, 255, 0.07);
  font-size: 8.6rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.seu-article-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--seu-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 54px;
}

.seu-article-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
}

.seu-article-kicker span,
.seu-article-kicker time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0 10px;
}

.seu-article-kicker span {
  border-color: var(--seu-route);
  background: var(--seu-route);
}

.seu-article-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.12;
  font-weight: 950;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.seu-article-hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 700;
  word-break: keep-all;
}

.seu-article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 840px);
  gap: 36px;
  width: min(var(--seu-max), calc(100% - 32px));
  margin: 34px auto 0;
  align-items: start;
}

.seu-article-layout > *,
.seu-article-body,
.seu-coupang-card__body,
.shop-product-block {
  min-width: 0;
}

.seu-article-rail {
  position: sticky;
  top: 18px;
  border-left: 6px solid var(--seu-signal);
  padding: 4px 0 4px 14px;
  color: var(--seu-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.seu-rail-label {
  display: block;
  margin: 0 0 12px;
  color: var(--seu-route-dark);
  font-size: 0.76rem;
  font-weight: 950;
}

.seu-article-rail ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seu-article-rail li {
  color: var(--seu-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.seu-article-body {
  counter-reset: seu-section;
}

.seu-article-body.seu-content {
  border: 0;
  background: transparent;
  padding: 14px 0 0;
  font-size: 1.06rem;
}

.seu-article-body > p:first-of-type {
  margin-top: 0;
  border: 1px solid var(--seu-line);
  border-top: 3px solid var(--seu-route);
  background: var(--seu-paper);
  padding: 18px 20px;
  font-size: 1.08rem;
  font-weight: 760;
}

.seu-article-body p {
  max-width: 780px;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.seu-article-body h2 {
  counter-increment: seu-section;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 2.35em 0 0.75em;
  border-top: 2px solid var(--seu-ink);
  padding-top: 14px;
  font-size: 1.65rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.seu-article-body h2::before {
  content: counter(seu-section, decimal-leading-zero);
  color: var(--seu-coral);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.6;
}

.seu-article-body h3 {
  margin: 1.65em 0 0.5em;
  font-size: 1.08rem;
}

.seu-article-body strong {
  color: var(--seu-ink);
  font-weight: 900;
}

.seu-article-body u,
.seu-underline {
  border-bottom: 2px solid rgba(0, 140, 149, 0.55);
  font-weight: 850;
  text-decoration: none;
}

.seu-article-body mark,
.seu-emphasis {
  border: 1px solid rgba(235, 90, 70, 0.34);
  background: rgba(235, 90, 70, 0.08);
  color: var(--seu-ink);
  padding: 0.05em 0.24em;
  font-weight: 850;
}

@media (max-width: 900px) {
  .seu-topbar__inner,
  .seu-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .seu-nav {
    justify-content: flex-start;
  }

  .seu-post-grid,
  .seu-home-brief {
    grid-template-columns: 1fr;
  }

  .seu-home-brief div {
    border-right: 0;
    border-bottom: 1px solid var(--seu-line);
  }

  .seu-home-brief div:last-child {
    border-bottom: 0;
  }

  .seu-article-layout {
    grid-template-columns: 1fr;
  }

  .seu-article-rail {
    position: static;
    display: none;
  }

  .seu-coupang-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .seu-topbar__inner,
  .seu-main,
  .seu-footer__inner,
  .seu-hero__inner,
  .seu-article-hero__inner,
  .seu-article-layout {
    width: min(100% - 20px, var(--seu-max));
  }

  .seu-hero,
  .seu-hero__inner {
    min-height: 330px;
  }

  .seu-hero h1 {
    font-size: 3.15rem;
  }

  .seu-hero p:not(.seu-kicker),
  .seu-article-hero p {
    font-size: 0.96rem;
    word-break: break-all;
  }

  .seu-hero__mark {
    font-size: 5.2rem;
  }

  .seu-content {
    padding: 18px;
  }

  .seu-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .seu-article-hero h1 {
    font-size: 2rem;
    line-height: 1.18;
  }

  .seu-article-body p,
  .seu-article-body li,
  .seu-coupang-card h3 {
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .seu-article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .seu-article-body h2 {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    font-size: 1.35rem;
  }

  .seu-coupang-card {
    grid-template-columns: 1fr;
  }

  .seu-coupang-card__image {
    min-height: 170px;
  }
}
