/* 즉시출고 (/stock) 전용 — 이 페이지에서만 불러온다.
   색·모서리·버튼은 sub.css 기존 값(#2b88ff / #e0e0e0 / #f4f7fb / 10px)을 그대로 따른다.
   디자인 규율: 알약형 버튼·색 뱃지·아이콘을 쓰지 않는다. 위계는 글자 크기·굵기·괘선으로만. */

.stock-visual{padding-top:0;overflow:hidden}
.stock-visual .inner{display:flex;align-items:center;justify-content:space-between;margin:0 auto;width:1200px;height:100%}
.stock-visual h1{font-size:44px;font-weight:700;line-height:1.3;letter-spacing:-1px;color:#fff}
.stock-visual p{margin-top:16px;font-size:18px;font-weight:400;color:#fff}
.stock-visual img{align-self:flex-end;margin:0 40px 6px 0;width:480px;height:auto}

.stock-head{display:flex;align-items:flex-end;justify-content:space-between}
.stock-asof{padding-bottom:8px;font-size:15px;font-weight:400;color:#535353;font-variant-numeric:tabular-nums}
.stock-asof b{font-size:18px;font-weight:700;color:#111}

.stock-sec-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px}
.stock-sec-head h2{font-size:24px;font-weight:700;letter-spacing:-.5px}

/* 글자 탭 — 세로 괘선으로만 구분 */
.stock-texttab{display:flex}
.stock-texttab li{padding:0 14px;border-left:1px solid #e0e0e0;line-height:1}
.stock-texttab li:first-child{border-left:none}
.stock-texttab li:last-child{padding-right:0}
.stock-texttab a{font-size:15px;font-weight:400;color:#535353}
.stock-texttab a:hover,.stock-texttab a.on{color:#2b88ff}
.stock-texttab a.on{font-weight:700}

/* TOP 5 — 떠 있는 카드 5장이 아니라 괘선으로 나눈 한 줄.
   분류에 따라 보이는 칸이 바뀌므로 칸마다 왼쪽 선을 두고 -1px 로 겹쳐, 첫 칸의 선은 테두리 밖으로 잘려 나가게 한다 */
.stock-rank{display:flex;border:1px solid #e0e0e0;border-radius:10px;overflow:hidden}
.stock-rank li{flex:0 0 20%;min-width:0;margin-left:-1px;border-left:1px solid #e0e0e0}
.stock-rank a{display:block;padding:18px 18px 16px;height:100%}
.stock-rank a:hover{background:#f7fbff}
.stock-rank .nm{display:block;font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stock-rank .nm i{margin-right:8px;font-style:normal;font-size:24px;font-weight:700;color:#2b88ff;font-variant-numeric:tabular-nums}
.stock-rank img,.stock-rank .noimg{display:block;margin:10px auto 8px;width:100%;max-width:190px;height:auto}
.stock-rank dl{display:flex;justify-content:space-between;font-size:14px;font-weight:400;color:#535353;font-variant-numeric:tabular-nums}
.stock-rank dl+dl{margin-top:4px}
.stock-rank dt{font-size:14px;font-weight:400;color:#535353}
.stock-rank dd{font-size:15px;font-weight:700;color:#111}
.stock-rank dd.pr{color:#2b88ff}
.stock-rank li.none{flex:1;padding:60px 0;text-align:center;font-weight:400;color:#999}
.noimg{aspect-ratio:2 / 1;background:#f4f7fb;font-size:13px;font-weight:400;line-height:1;color:#9698a5;display:flex;align-items:center;justify-content:center}

.stock-finder{margin-top:24px}
.stock-finder .brand em{margin-left:3px;font-style:normal;font-size:12px;font-weight:400;color:#9698a5}

.stock-toolbar{display:flex;align-items:center;justify-content:space-between}
.stock-count{font-size:18px;font-variant-numeric:tabular-nums}
.stock-count span{color:#2b88ff}
.stock-controls{display:flex;gap:10px}
.stock-seg{display:flex}
.stock-seg a{margin-left:-1px;padding:0 18px;height:40px;border:1px solid #e0e0e0;background:#fff;font-size:15px;font-weight:400;line-height:38px}
.stock-seg a:first-child{margin-left:0}
.stock-seg a.on{position:relative;border-color:#2b88ff;background:#2b88ff;color:#fff;font-weight:500}
.stock-controls select{padding:0 10px;height:40px;border:1px solid #e0e0e0;border-radius:0;background:#fff;font-family:inherit;font-size:15px;color:#111}
.stock-search{display:flex}
.stock-search input{padding:0 12px;width:150px;height:40px;border:1px solid #e0e0e0;border-right:none;border-radius:0;font-size:15px;font-weight:400;outline:none;-webkit-appearance:none}
.stock-search input:focus{border-color:#2b88ff}
.stock-search input::placeholder{color:#999}
.stock-search button{padding:0 16px;height:40px;border:1px solid #111;border-radius:0;background:#111;font-size:15px;color:#fff;cursor:pointer}

/* 목록 — PC 는 표 */
.stock-table{border-top:2px solid #111}
.stock-tr{display:grid;grid-template-columns:190px 1fr 120px 190px 90px 230px;align-items:center;column-gap:20px;padding:18px 20px 18px 10px;border-bottom:1px solid #e0e0e0}
.stock-th{padding-top:0;padding-bottom:0;height:46px;background:#f4f7fb}
.stock-th span{font-size:14px;font-weight:400;color:#535353}
.stock-th .c-car{grid-column:1 / 3;padding-left:10px}
.stock-tr .im img{display:block;width:100%;height:auto}
.stock-tr .nm{font-size:20px;font-weight:700}
.stock-tr .tr{margin-top:4px;font-size:14px;font-weight:400;color:#666}
.stock-tr .ct{font-size:15px;font-weight:400}
.stock-tr .pr{font-size:16px;line-height:1.5;font-variant-numeric:tabular-nums}
.stock-tr .pr span{margin-right:5px;font-size:14px}
.stock-tr .pr b{font-size:20px;font-weight:700;color:#2b88ff}
.stock-tr .st{font-size:16px;font-variant-numeric:tabular-nums}
.stock-tr .st b{font-size:20px;font-weight:700}
.stock-tr .st small{display:block;margin-top:2px;font-size:13px;font-weight:400}
.stock-tr .st.low,.stock-tr .st.low b,.stock-tr .st.low small{color:#f44a6e}
.stock-tr .bt{display:flex;gap:10px}
.stock-tr .bt a{flex:1;height:46px;line-height:45px}
.stock-tr:not(.stock-th):hover{background:#fafcfe}

.stock-empty{padding:70px 0;border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;text-align:center;font-weight:400;color:#535353}
.stock-notice{padding-top:24px;border-top:1px solid #e0e0e0}
.stock-notice li{position:relative;padding-left:10px;font-size:14px;font-weight:400;line-height:1.8;color:#666}
.stock-notice li::before{content:"·";position:absolute;left:0}

/* 1200px 이하 — 같은 마크업을 /cars 목록과 같은 모양의 카드로 접는다 */
@media screen and (max-width:1200px){
    .stock-visual .inner{padding:0 20px;width:100%}
    .stock-visual img{margin-right:0;width:380px}

    .stock-table{border-top:none}
    .stock-th{display:none}
    .stock-tr{grid-template-columns:1fr 160px;grid-template-areas:"info im" "pr im" "st ct" "bt bt";align-items:start;column-gap:0;margin-bottom:30px;padding:20px;border:1px solid #e0e0e0;border-radius:10px}
    .stock-tr:not(.stock-th):hover{background:none}
    .stock-tr .im{grid-area:im;align-self:center;padding-left:12px}
    .stock-tr .info{grid-area:info}
    .stock-tr .pr{grid-area:pr;margin-top:6px}
    .stock-tr .st,.stock-tr .ct{margin-top:16px;padding-top:12px;border-top:1px solid #ebebeb}
    .stock-tr .st{grid-area:st}
    .stock-tr .st::before{content:"재고 ";font-weight:400} /* 표 머리글이 없어지므로 */
    .stock-tr .st b{font-size:17px}
    .stock-tr .st small{display:inline;margin-left:6px}
    .stock-tr .ct{grid-area:ct;text-align:right;line-height:24px;color:#535353}
    .stock-tr .bt{grid-area:bt;gap:16px;margin-top:12px}
}
@media screen and (max-width:600px){
    .stock-visual h1{font-size:24px;letter-spacing:-.5px}
    .stock-visual p{margin-top:8px;font-size:13px}
    .stock-visual img{margin:0 -50px -8px -30px;width:210px}

    .stock-head{display:block}
    .stock-asof{padding:4px 0 0;font-size:13px}
    .stock-asof b{font-size:15px}

    .stock-sec-head{display:block;margin-bottom:12px}
    .stock-sec-head h2{font-size:20px}
    .stock-texttab{margin-top:12px;overflow-x:auto;white-space:nowrap}
    .stock-texttab li:first-child{padding-left:0}
    .stock-texttab a{font-size:14px}

    /* TOP 5 는 순위표로 눕힌다 */
    .stock-rank{display:block;border-radius:8px}
    .stock-rank li{margin:-1px 0 0;border-left:none;border-top:1px solid #e0e0e0}
    .stock-rank a{display:grid;grid-template-columns:84px 1fr auto;grid-template-rows:auto auto;align-items:center;column-gap:10px;padding:10px 14px 10px 8px}
    .stock-rank img,.stock-rank .noimg{grid-row:1 / 3;grid-column:1;margin:0}
    .stock-rank .nm{grid-column:2 / 4;font-size:15px}
    .stock-rank .nm i{font-size:17px}
    .stock-rank dl{display:block;font-size:13px}
    .stock-rank dl+dl{margin-top:0;text-align:right}
    .stock-rank dt{display:inline;font-size:13px}
    .stock-rank dd{display:inline;margin-left:4px;font-size:14px}

    .stock-toolbar{display:block}
    .stock-count{font-size:16px}
    .stock-controls{flex-wrap:wrap;gap:8px;margin-top:12px}
    .stock-seg{width:100%}
    .stock-seg a{flex:1;padding:0;text-align:center;font-size:14px}
    .stock-controls select{flex:1;min-width:0;font-size:14px}
    .stock-search{flex:1.2;min-width:0}
    .stock-search input{flex:1;width:auto;min-width:0;font-size:14px}
    .stock-search button{padding:0 12px;font-size:14px}

    .stock-tr{grid-template-columns:1fr 128px;margin-bottom:24px;padding:16px;border-radius:8px}
    .stock-tr .nm{font-size:18px}
    .stock-tr .tr{font-size:13px}
    .stock-tr .pr{font-size:14px}
    .stock-tr .ct{font-size:14px}
    .stock-tr .st{font-size:14px}
    .stock-tr .st b{font-size:16px}
    .stock-notice li{font-size:13px;line-height:1.7}
}
