/**
Theme Name: YellowGuard Astra Child
Author: YellowGuard
Author URI: https://yellowguard.co.kr
Description: Astra 기반 옐로우가드 도로·인도 안전 부착물 카달로그 사이트용 자식테마
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yellowguard-astra-child
Template: astra
*/



/*메인페이지 카달로그 목록 디자인*/
/* 한 줄 카드(좌:이미지 / 우:설명) */
.home-cat-row{
  padding: 14px 0;
  border-bottom: 1px solid #d9d9d9;  /* 첨부파일처럼 구분선 */
}

.home-cat-link{
  display: flex;
  gap: 22px;
  align-items: flex-start;
  text-decoration: none;
}

/* 왼쪽 이미지 박스 */
.home-cat-img img{
  width: 180px;        /* 필요시 150~220 조절 */
  height: 180px;
  object-fit: contain;
  display: block;
  border: 1px solid #2f6fbf;  /* PPT 예시처럼 테두리 느낌 */
  border-radius: 10px;
}

/* 오른쪽 텍스트 */
.home-cat-info{
  flex: 1;
}

.home-cat-title{
  font-size: 14px;
  margin: 6px 0 18px;
}

.home-cat-spec{
  font-size: 12px;
  margin-bottom: 22px;
}

.home-cat-price{
  font-size: 12px;
}


@media (max-width: 700px){
  .home-cat-link{ flex-direction: column; }
  .home-cat-img img{ width: 100%; height: auto; }
}
/* 홈 카달로그 3개 카드 레이아웃 - END */



/************* 테스트후 미사용 유력함  ********************/
/*카달로그 목록 디자인
작성자: 김동성
한 줄 카드(좌:이미지 / 우:설명) 
*/
.catalog_list-row{
  padding: 20px 0;
  border-bottom: 1px solid #d9d9d9;
}

.catalog_list-link{
  display: flex;
  gap: 22px;
  align-items: flex-start;
  text-decoration: none;
}

/* 왼쪽 이미지 박스 */
.catalog_list-img img{
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  border: 1px solid #2f6fbf;
}

/* 오른쪽 텍스트 */
.catalog_list-info{
  flex: 1;
}

.catalog_list-title{
  font-size: 20px;
  margin: 6px 0 18px;
}

.catalog_list-spec{
  font-size: 12px;
  margin-bottom: 22px;
}

.catalog_list-price{
  font-size: 12px;
}

/* 모바일에서 자동으로 세로로 쌓이게 */
@media (max-width: 700px){
  .catalog_list-link{ flex-direction: column; }
  .catalog_list-img img{ width: 100%; height: auto; }
}
/* 카달로그 목록  레이아웃 - END */



/*********************************/
/* taxonomy wrapper */
.yg-tax-list{
  max-width: 1024px;
  width:1024px;
  margin: 0 auto;      /* 가운데 정렬 */
  padding: 0;          /* 필요시 0~12px로 조절 */
}


.yg-tax-wrap.ast-container{
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.yg-tax-header { margin-bottom: 16px; }
.yg-tax-title { margin: 0 0 8px; font-size: 14px; line-height: 1.2;color:black }
.yg-tax-desc { color: black; }



/* row card (좌/우) */
.list-cat-row{
  padding: 14px 0;
  border-bottom: 1px solid #d9d9d9;  /* 첨부파일처럼 구분선 */
}


.list-cat-link{
  display: flex;
  gap: 22px;
  align-items: flex-start;
  text-decoration: none;
}



/* left thumb */
.list-cat-img{
	width: 180px;        /* 필요시 150~220 조절 */
}

.list-cat-img img{
  width: 180px;        /* 필요시 150~220 조절 */
  height: 180px;
  object-fit: contain;
  display: block;
  border: 1px solid #2f6fbf;  /* PPT 예시처럼 테두리 느낌 */
	object-position:left center;
}


/* right info */
.list-cat-info{
  flex: 1;
  padding: 14px 1px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.list-cat-title{
  font-weight:600;
  line-height:1.25;
  margin:0 0 6px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
  overflow:hidden;
}
.list-cat-title--primary{
  font-weight:600;
  font-size:16px;
  line-height:1.25;
  margin:0 0 6px;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.list-cat-title--sub{
  font-weight:600;
  font-size:14px;
  color: #C0C0C0;
  line-height:1.3;
  margin:0 0 8px;
  color:black;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}



/* (선택) spec/price도 1줄로 고정하고 싶으면 */
.list-cat-spec,
.list-cat-price{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* hover */
.list-cat-link:hover{
  border-color: rgba(0,0,0,.18);
}

/* mobile: 세로 스택 */
@media (max-width:768px){
  .list-cat-link{ flex-direction:column; gap:0; }
  .list-cat-img{ max-width:100%; height:220px; }
  .yg-tax-wrap.ast-container{ padding-left:12px; padding-right:12px; }
}


/**배너**/
.yg-tax-banner{
  max-width: 1024px;
  margin: 0 auto;
  padding: 0;
}
.yg-tax-banner-inner{
  border-radius: 16px;
  overflow: hidden;
}
.yg-tax-banner img{
  width: 100%;
  height: auto;
  display: block;
}

/* 공백(위/아래) */
.yg-space--top{ height: 24px; }
.yg-space--bottom{ height: 500px;  width:1024px;}

/* 모바일에서 조절 */
@media (max-width:768px){
  .yg-tax-banner{ padding: 0 12px; }
  .yg-space--top{ height: 16px; }
  .yg-space--bottom{ height: 24px; }
}








/*카달로그 목록 디자인
작성자: 김동성
한 줄 카드(좌:이미지 / 우:설명) 
*/
/* ===== Catalog Taxonomy List (Block + Split) ===== */

.catalog_tax_wrap{
  width: 100%;
}

/* 세로 블록 쌓기 */
.catalog_stack{
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 블록 공통 */
.catalog_block{
  width: 100%;
  display: block;
}

/* 배너 */
.catalog_banner_inner img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* 헤더 */
.catalog_header_title{
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.catalog_header_desc{
  color: #444;
  line-height: 1.6;
}

/* 목록 */
.catalog_list_items{
  display: flex;
  flex-direction: column;
}

/* 카드(행) */
.catalog_card{
  padding: 15px 0 15px 0;
  border-bottom:1px solid #d9d9d9  ;
}

/* ✅ 가로 컨테이너(2구역) */
.catalog_split{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}
.catalog_split_left,
.catalog_split_right{
  min-width: 0;
}

/* 왼쪽 이미지 */
.catalog_thumb img{
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  border: 1px solid #2f6fbf;
  border-radius: 10px;
}

/* 오른쪽 텍스트 */

.catalog_summary{
  margin-bottom: 12px;
  color: #333;
}
.catalog_spec,
.catalog_price{
  font-size: 12px;
  margin-bottom: 8px;
  color: #111;
}

/* ✅ 제목/요약 링크는 서로 다른 줄로 */
.catalog_title_link,
.catalog_summary_link{
  /*display: block;*/
  text-decoration: none;
  color: inherit;
  
}
.catalog_title,
.catalog_summary{
  display: block;
  width: 100%;
}

/* 모바일 */
@media (max-width: 700px){
  .catalog_split{
    grid-template-columns: 1fr;
  }
  .catalog_thumb img{
    width: 100%;
    height: auto;
  }
}

/* ===== END ===== */



/* ===== 카테고리 ===== */

/* 드롭다운 메뉴 폭 조정 */
.ast-desktop .main-header-menu .sub-menu {
    width: auto;
    min-width: 220px;
    margin-top:0px !important;
    top:100% !important;	
}

.ast-desktop .main-header-menu .sub-menu li a {
    padding: 6px 12px;
    white-space: nowrap;
}

.ast-desktop .main-header-menu > li{
    line-height:1.2;
    margin:0 !important;	
}

.ast-desktop .main-header-menu > li > a{
    padding:6px 12px !important;
    line-height:1.2 !important;
    display:flex;
    align-items:center;	
}


/* ===== 카테고리 END ===== */





/* ===== 폰트적용 ===== */
/* Open Sans */
@font-face {
  font-family: 'Open Sans';
  src: url('/wp-content/uploads/fonts/open-sans-v44-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Montserrat */
@font-face {
  font-family: 'Montserrat';
  src: url('/wp-content/uploads/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Montserrat */
@font-face {
  font-family: 'Montserrat';
  src: url('/wp-content/uploads/fonts/montserrat-v31-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}



/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('/wp-content/uploads/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/wp-content/uploads/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Courier Prime */
@font-face {
  font-family: 'Courier Prime';
  src: url('/wp-content/uploads/fonts/courier-prime-v11-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Roboto */
@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/uploads/fonts/roboto-v51-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/uploads/fonts/roboto-v51-latin-regular.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Roboto Slab */
@font-face {
  font-family: 'Roboto Slab';
  src: url('/wp-content/uploads/fonts/roboto-slab-v36-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}