:root{
  --ink:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.12);
  --bg:#ffffff;
  --panel-bg:#e9e1d2;
  --accent:#6f7d55;
}

/* =========================
   PAGE LAYOUT
========================= */

.cattle-detail-stage{
  background:#ffffff;
}

.cattle-detail-layout{
  display:grid;
  grid-template-columns:320px 1fr;
}

/* =========================
   LEFT PANEL
========================= */

.cattle-detail-side{
  background:var(--panel-bg);
  min-height:100vh;
}

.cattle-detail-side__label{
  position:sticky;
  top:var(--header-h);
  height:calc(100vh - var(--header-h));
  display:flex;
  align-items:center;
  justify-content:center;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-size:52px;
  font-weight:900;
  letter-spacing:.18em;
  color:#fff;
  transform:translateX(110px);
  user-select:none;
  pointer-events:none;
}

/* =========================
   MAIN
========================= */

.cattle-detail-main{
  padding:56px 0 90px;
}

.cattle-detail-wrap{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

/* =========================
   BREADCRUMB
========================= */

.cattle-breadcrumb{
  display:flex;
  gap:10px;
  margin-bottom:30px;
  font-size:15px;
  font-weight:800;
  color:#475569;
}

.cattle-breadcrumb a{
  color:#475569;
  text-decoration:none;
}

.cattle-breadcrumb span{
  color:#0f172a;
}

.cattle-breadcrumb__sep{
  color:#94a3b8;
}

/* =========================
   DIVIDER
========================= */

.cattle-divider{
  margin-top:16px;
  margin-bottom:24px;
  width:260px;
  max-width:100%;
  height:1px;
  background:rgba(15,23,42,.14);
}

/* =========================
   HERO
========================= */

.cattle-hero{
  display:grid;
  grid-template-columns:320px 480px;
  gap:48px;
  align-items:start;
  margin-bottom:70px;
}

.cattle-hero__imagebox{
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  padding:18px;
  background:#fff;
  box-shadow:0 16px 34px rgba(2,6,23,.08);
}

.cattle-hero__image{
  display:flex;
  align-items:center;
  justify-content:center;
}

.cattle-hero__image img{
  width:100%;
  max-width:240px;
  display:block;
}

.cattle-hero__info{
  padding-top:18px;
  max-width:480px;
}

.cattle-hero__eyebrow{
  margin:0 0 6px;
  font-size:13px;
  letter-spacing:.18em;
  font-weight:900;
  color:var(--accent);
}

.cattle-hero__title{
  margin:0 0 8px;
  font-size:34px;
  font-weight:900;
  color:#0f172a;
  line-height:1.2;
}

.cattle-hero__subtitle{
  margin:0 0 16px;
  font-size:17px;
  font-weight:900;
  color:#475569;
}

.cattle-hero__summary{
  margin:0;
  padding-top:14px;
  font-size:16px;
  line-height:1.9;
  color:#243041;
  word-break:keep-all;
}

/* =========================
   SECTION
========================= */

.cattle-section{
  margin-bottom:64px;
}

.cattle-section__title{
  margin:0;
  font-size:26px;
  font-weight:900;
  color:#0f172a;
}

/* =========================
   핵심포인트
========================= */

.cattle-points{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.cattle-point{
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 24px rgba(2,6,23,.05);
  padding:26px 24px;
  display:grid;
  grid-template-columns:72px 1fr;
  gap:18px;
}

.cattle-point__num{
  font-size:56px;
  line-height:1;
  font-weight:900;
  color:var(--accent);
}

.cattle-point__title{
  margin:4px 0 12px;
  font-size:22px;
  font-weight:900;
  color:#0f172a;
  line-height:1.35;
  word-break:keep-all;
}

.cattle-point__text{
  margin:0;
  font-size:15px;
  line-height:1.9;
  color:#334155;
  word-break:keep-all;
}

/* =========================
   성분 요약
========================= */

.cattle-specs{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:0;
  max-width:1000px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.cattle-spec{
  padding:18px 12px;
  text-align:center;
  border-right:1px solid rgba(15,23,42,.08);
}

.cattle-spec:last-child{
  border-right:none;
}

.cattle-spec__label{
  margin:0 0 6px;
  font-size:13px;
  font-weight:800;
  color:#64748b;
}

.cattle-spec__value{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:#0f172a;
  word-break:keep-all;
}

/* =========================
   TABLE
========================= */

.cattle-table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.cattle-table{
  width:100%;
  min-width:860px;
  border-collapse:collapse;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(2,6,23,.05);
}

.cattle-table thead th{
  background:#717b54;
  color:#fff;
  font-size:14px;
  font-weight:800;
  padding:14px 12px;
  text-align:center;
}

.cattle-table tbody td{
  padding:14px 12px;
  border-top:1px solid rgba(15,23,42,.08);
  font-size:14px;
  line-height:1.7;
  color:#334155;
  text-align:center;
  word-break:keep-all;
}

.cattle-table tbody tr:last-child td{
  text-align:center;
  box-shadow:inset 0 -1px 0 rgba(15,23,42,.08);
}

.cattle-note{
  margin-top:14px;
}

.cattle-note p{
  margin:6px 0 0;
  font-size:14px;
  color:#64748b;
  line-height:1.7;
  word-break:keep-all;
}

/* =========================
   NAV
========================= */

.cattle-nav{
  margin-top:70px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:28px;
  border-top:1px solid #e5e7eb;
  padding-top:36px;
}

.cattle-nav--single{
  justify-content:flex-start;
}

.cattle-nav__list{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:999px;
  background:#f3f4f6;
  font-size:15px;
  font-weight:700;
  color:#111827;
  text-decoration:none;
}

.cattle-nav__list:hover{
  background:#e5e7eb;
}

/* =========================
   MOBILE
========================= */

@media (max-width:900px){
  html, body{
    overflow-x:hidden;
  }

  .cattle-detail-layout{
    display:block;
  }

  .cattle-detail-side{
    display:none;
  }

  .cattle-detail-main{
    padding:36px 0 64px;
  }

  .cattle-detail-wrap{
    width:100%;
    max-width:100%;
    margin:0 auto;
    padding:0 18px;
    box-sizing:border-box;
  }

  .cattle-breadcrumb{
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:22px;
    font-size:14px;
  }

  .cattle-hero{
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
    margin-bottom:42px;
    max-width:100%;
  }

  .cattle-hero__imagebox{
    width:100%;
    max-width:100%;
    padding:14px;
    border-radius:18px;
    overflow:hidden;
    box-sizing:border-box;
  }

  .cattle-hero__image{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:100%;
  }

  .cattle-hero__image img{
    display:block;
    width:100%;
    max-width:220px;
    height:auto;
    object-fit:contain;
    margin:0 auto;
  }

  .cattle-hero__info{
    width:100%;
    max-width:100%;
    padding-top:0;
  }

  .cattle-hero__eyebrow{
    margin:0 0 6px;
    font-size:12px;
    letter-spacing:.14em;
  }

  .cattle-hero__title{
    margin:0 0 8px;
    font-size:28px;
    line-height:1.25;
  }

  .cattle-hero__subtitle{
    margin:0 0 14px;
    font-size:17px;
    line-height:1.45;
  }

  .cattle-hero__summary{
    font-size:15px;
    line-height:1.8;
  }

  .cattle-section{
    margin-bottom:46px;
    max-width:100%;
  }

  .cattle-section__title{
    font-size:22px;
    line-height:1.3;
  }

  .cattle-divider{
    width:180px;
    margin-top:14px;
    margin-bottom:18px;
  }

  .cattle-points{
    grid-template-columns:1fr;
    gap:14px;
  }

  .cattle-point{
    grid-template-columns:56px 1fr;
    gap:14px;
    padding:20px 18px;
  }

  .cattle-point__num{
    font-size:44px;
  }

  .cattle-point__title{
    font-size:18px;
  }

  .cattle-point__text{
    font-size:15px;
    line-height:1.75;
  }

  .cattle-specs{
    grid-template-columns:repeat(2, 1fr);
    gap:0;
    max-width:100%;
  }

  .cattle-spec{
    padding:16px 12px;
    border-right:1px solid rgba(15,23,42,.08);
    border-bottom:1px solid rgba(15,23,42,.08);
  }

  .cattle-spec:nth-child(2n){
    border-right:none;
  }

  .cattle-spec:nth-last-child(-n+2){
    border-bottom:none;
  }

  .cattle-spec__label{
    font-size:13px;
  }

  .cattle-spec__value{
    font-size:17px;
  }

  /* 모바일에서는 표 → 카드형 */
  .cattle-table-wrap{
    overflow:visible;
  }

  .cattle-table{
    min-width:0;
    width:100%;
    border:none;
    box-shadow:none;
    background:transparent;
  }

  .cattle-table thead{
    display:none;
  }

  .cattle-table,
  .cattle-table tbody,
  .cattle-table tr,
  .cattle-table td{
    display:block;
    width:100%;
  }

  .cattle-table tbody{
    display:grid;
    gap:14px;
  }

  .cattle-table tbody tr{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:16px;
    box-shadow:0 10px 24px rgba(2,6,23,.05);
    padding:14px 14px 10px;
    overflow:hidden;
  }

  .cattle-table tbody td{
    border:none;
    border-top:1px solid rgba(15,23,42,.06);
    padding:10px 0 10px 88px;
    text-align:left;
    font-size:14px;
    line-height:1.6;
    color:#334155;
    position:relative;
  }

  .cattle-table tbody td:first-child{
    border-top:none;
    padding-top:0;
  }

  .cattle-table tbody td::before{
    content:attr(data-label);
    position:absolute;
    left:0;
    top:10px;
    width:76px;
    font-size:12px;
    line-height:1.4;
    font-weight:800;
    color:#64748b;
  }

  .cattle-table tbody td:first-child::before{
    top:0;
  }

  .cattle-table tbody tr:last-child td{
    text-align:left;
    box-shadow:none;
  }

  .cattle-note p{
    font-size:14px;
    line-height:1.7;
  }

  .cattle-nav{
    margin-top:42px;
    width:100%;
  }

  .cattle-nav__list{
    width:100%;
    justify-content:center;
  }
}