﻿@charset "UTF-8";

/* ==========================================================================
   Sub layout
   ========================================================================== */
.sub-flex {
	display: flex;
	align-items: stretch;
}
.sub-content {
	flex: 1;
	min-width: 0;
}
.sub-flex .quickmenu-col {
	padding-top: 30px;
}
.sub-container {
	width: var(--wrap);
	margin: 0 auto;
	display: flex;
	align-items: stretch;
	gap: 50px;
	padding: 0;
}
.footer {
	margin-top: 0;
}

/* ----- Side bar ----- */
.side {
	flex: 0 0 260px;
	border-left: 1px solid var(--c-border);
	border-right: 1px solid var(--c-border);
	padding: 30px 20px 0;
}
.side__title {
	font-size: 18px;
	font-weight: 700;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--c-text);
	margin-bottom: 6px;
}
.side__tab li a {
	display: block;
	padding: 14px 4px;
	font-size: 15px;
	color: #555;
	border-bottom: 1px solid var(--c-border);
}
.side__tab li.is-active a {
	color: #fff;
	font-weight: 700;
	background: var(--c-green-dark);
	padding-left: 16px;
	border-bottom-color: var(--c-green-dark);
}

/* ----- 물품분류 카테고리 트리 (list-category.html 전용 - 물품분류 전체보기로 진입했을 때의 왼쪽 메뉴)
   마우스오버 시 해당 대분류의 소분류 목록이 사이드바 오른쪽에 플라이아웃으로 펼쳐진다. ----- */
.side-cate {
	margin-bottom: 10px;
}
.side-cate > li {
	position: relative;
}
.side-cate > li > a {
	display: block;
	padding: 14px 4px;
	font-size: 15px;
	color: #555;
	border-bottom: 1px solid var(--c-border);
}
.side-cate > li:hover > a,
.side-cate > li.is-active > a {
	color: var(--c-text);
	font-weight: 700;
}
.side-cate__panel {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	width: 220px;
	min-height: 100%;
	background: #fff;
	border: 1px solid var(--c-border);
	border-left: none;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .12);
	padding: 14px 20px;
	z-index: 20;
}
.side-cate > li:hover .side-cate__panel {
	display: block;
}
.side-cate__panel li {
	margin-bottom: 8px;
}
.side-cate__panel li a {
	font-size: 14px;
	color: var(--c-text-sub);
}
.side-cate__panel li a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

/* ----- 우리농 회원상담실 ----- */
.side-consult {
	margin-top:20px;
	margin-left: -20px;
	margin-right: -20px;
	padding: 15px;
	border-top: 1px solid var(--c-border);
	background-color: #f6eddc;
}
.side-consult h3 {
	font-size: 22px;
	color: #386009;
	font-weight: 700;
}
.side-consult h4 {
	font-size: 18px;
	color: #386009;
	font-weight: 700;
}
.side-consult .tel {
	font-size: 28px;
	font-weight: 900;
	margin-bottom: 8px;
	color: #44271f;
}
.side-consult .desc {
	font-size: 14px;
	color: #000;
	line-height: 1.6;
	font-weight: 700;
	margin-bottom: 12px;
}
.side-consult .desc2 {
	font-size: 14px;
	color: #386009;
	font-weight: 800;
	margin-bottom: 12px;
}
.side-consult .photo-txt {
	font-size: 15px;
	font-weight: 700;
	color: #000;
	margin-bottom: 0px;
}
.side-consult .photo-hp {
	font-size: 17px;
	color: #44271f;
	font-weight: 800;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px dashed #b3a58f;
}
.side-consult .num-txt {
	text-align: center;
	font-size: 14px;
	color: #000;
	font-weight: 800;
}
.side-consult .num {
	text-align: center;
	font-size: 16px;
	color: #000;
	font-weight: 800;
}
.side-consult .num span {
	color: #2d2686;
	font-weight: 800;
}
.side-consult .sub {
	text-align: center;
	font-size: 12px;
	color: #000;
	font-weight: 800;
}

/* ----- 받는날 / 주문마감일 표 ----- */
.side-schedule{
	margin-top:20px;
	margin-left: -20px;
	margin-right: -20px;
	margin-bottom:20px;
	padding:0px !important;
}
.side-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.side-table th,
.side-table td {
	text-align: center;
	padding: 9px 4px;
	border-bottom:1px solid #5d5d5d;
}
.side-table thead th {
	font-weight: 900;
	color:#000;
	font-size:20px;
}
.side-table tbody th {
	font-weight: 700;
	color:#000;
	font-size:20px;
}
.side-table tbody td {
	color:#000;
	font-size:20px;
}
.side-table .t_left{background-color:#b4c599;}
.side-table .t_right{background-color:#ecd99f;}

/* ----- 주문마감 안내 ----- */
.side-deadline {
	margin-left: -20px;
	margin-right: -20px;
	padding: 15px;
	border-top: 1px solid var(--c-border);
	background-color: #ecd99f;
}
.side-deadline h3 {
	font-size: 18px;
	color: #386009;
	font-weight: 700;
}
.side-deadline .txt-deadline {
	text-align: left;
	font-size: 18px;
	color: #000;
	font-weight:600;
}
.side-deadline .txt-deadline span {
	font-weight:900;
}
.side-deadline .txt-deadline2{
	text-align: left;
	font-size: 12px;
	color: #000;
	font-weight: 600;
}

/* ----- 카드결제문의 이니시스 ----- */
.side-card {
	margin-top:20px;
	margin-left: -20px;
	margin-right: -20px;
	padding: 15px;
	border-top: 1px solid var(--c-border);
	background-color: #f6eddc;
}
.side-card .cs-title {
	text-align:center;
	font-size: 18px;
	color:#585252;
	font-weight: 900;
}
.side-card .cs-num {
	text-align:center;
	font-size: 18px;
	color:#585252;
	font-weight: 900;
}

/* ----- 가족농 사랑기금 배너 ----- */
.side-banner {
	margin-top: 20px;
	margin-left: -20px;
	margin-right: -20px;
}
.side-banner a {
	display: block;
	overflow: hidden;
}
.side-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* ----- Main content ----- */
.list-main {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: stretch;
}
.list-body {
	flex: 1;
	min-width: 0;
	padding-top: 30px;
	padding-bottom: 50px;
}
/* .cart-float 가 position:fixed 로 바뀌면서 페이지별 top 보정이 필요 없어져 삭제함 */
.list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--c-text);
	margin-bottom: 24px;
}
.list-head h1 {
	font-size: 22px;
	font-weight: 700;
}
.list-head h1 em {
	color: var(--c-green);
	font-style: normal;
}
.list-head__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.btn-cart-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 16px;
	border: 1px solid var(--c-green);
	border-radius: var(--radius);
	background: var(--c-green);
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}
.btn-cart-all:hover {
	background: var(--c-green-dark);
	border-color: var(--c-green-dark);
}
.btn-cart-all i {
	font-size: 14px;
}
.view-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid #e0d38f;
	border-radius: var(--radius);
	background: #fdf6d8;
	font-size: 13px;
	font-weight: 700;
	color: #222;
}
.view-toggle:hover {
	background: #faedb0;
}
.view-toggle svg {
	width: 14px;
	height: 14px;
}

.goods-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 44px 36px;
	/* 카드마다 높이를 각자 내용에 맞게 독립적으로 유지 (컬리처럼).
	   기본값(stretch)이면 같은 줄에서 제일 긴 카드에 맞춰 다른 카드도 억지로
	   늘어나는데, 이 사이트 카드는 배경/테두리가 없어 눈에 보이는 차이는 없지만
	   혹시 모를 부작용을 막기 위해 명시적으로 start로 둔다. */
	align-items: start;
}
/* 카드형(기본) 배치 - li를 2열 그리드로 두고 각 요소를 grid-row/grid-column으로 직접 배치.
   li 안의 마크업 순서는 리스트형(.is-list-view)의 표 순서(이미지/물품명/가격/수량/담기)에 맞춰
   이미 재배열되어 있어서, 카드형에서는 아래처럼 실제 위치를 다시 지정해준다. */
.goods-grid > li {
	display: grid;
	grid-template-columns: 1fr auto;
	min-width: 0;
	position: relative;
}
/* 상품 썸네일/이름 클릭 시 상세페이지로 이동하는 링크 - 레이아웃에 영향 없도록 display:contents 처리 */
.goods-card__link {
	display: contents;
}
.goods-card__thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius);
	overflow: hidden;
	background: #f4f2ee;
	margin-bottom: 12px;
	grid-column: 1 / -1;
	grid-row: 1;
}
.goods-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ----- 상품 표시 뱃지 -----
   마크업상 .goods-card__name(물품명) 안에 들어있지만, 카드형에서는 썸네일
   위에 겹쳐 보여야 하므로 position:absolute + 부모 li(position:relative) 기준으로
   썸네일 좌상단에 배치한다. 리스트형(.is-list-view)에서는 아래에서 position을
   해제해 물품명 옆에 나란히 흐르게 한다. */
.goods-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	padding: 0 6px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}
/* 뱃지 분류 (요청하신 전체 목록)
   국/유/무/저/유가/전유/자연/무항 : 인증표시류
   신규/할인/예약/한정/추천/행사/선물/묶음/증정/차례/기관/쿠폰/NEW/N : 판매/이벤트류
   색상은 임시로 지정한 값이라 필요하시면 언제든 말씀해주세요. */
.badge-guk { background: #4fbc13; color: #fef26d; }
.badge-yu { background: #1ba0e5; color: #fef26d; }
.badge-mu { background: #009688; }
.badge-jeo { background: #7cb342; }
.badge-yuga { background: #5c6bc0; }
.badge-jeonyu { background: #ab47bc; }
.badge-jayeon { background: #6d4c41; }
.badge-muhang { background: #00838f; }
.badge-singyu { background: #e91e63; }
.badge-halin { background: #ff9800; }
.badge-yeyak { background: #f54437; }
.badge-hanjeong { background: #9c27b0; }
.badge-chucheon { background: #05bee6; }
.badge-haengsa { background: #ff5722; }
.badge-seonmul { background: #d81b60; }
.badge-mukkeum { background: #795548; }
.badge-jeungjeong { background: #fbc02d; color: #402d00; }
.badge-charye { background: #b71c1c; }
.badge-gigwan { background: #3949ab; }
.badge-coupon { background: #f9a825; color: #402d00; }
.badge-new { background: #ff1744; }
.badge-n { background: #212121; }
.goods-card__cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 34px;
	border: 1px solid var(--c-border-dark);
	border-radius: var(--radius);
	font-size: 13px;
	color: #444;
	margin-bottom: 12px;
	grid-column: 1 / -1;
	grid-row: 2;
}
.goods-card__cart svg {
	width: 14px;
	height: 14px;
}
.goods-card__cart:hover {
	border-color: var(--c-green);
	color: var(--c-green);
}
/* 장바구니담기 버튼이 없는 상품(한정 등)에 대신 표시하는 주문마감 안내
   - search.html의 .search-goods__deadline과 동일한 스타일을 재사용.
   - 담기 버튼과 같은 자리(grid-row:2)에 들어가도록 위치를 맞춰준다. */
.goods-card__deadline {
	grid-column: 1 / -1;
	grid-row: 2;
	margin-bottom: 12px;
	text-align: center;
	font-size: 12px;
	line-height: 1.6;
	color: var(--c-text-sub);
}
.goods-card__deadline strong {
	display: block;
	color: var(--c-orange);
	font-weight: 800;
	font-size: 13px;
}
.goods-card__name {
	font-size: 14px;
	margin-bottom: 8px;
	font-weight:600;
	white-space: normal;
	word-break: keep-all;
	line-height: 1.4;
	grid-column: 1 / -1;
	grid-row: 3;
	/* 이름을 자르지 않고 그대로 다 보여준다. 카드마다 높이가 독립적이라
	   (.goods-grid 의 align-items: start 참고) 이름이 긴 카드는 그 카드만
	   길어질 뿐, 같은 줄의 다른 카드는 전혀 영향받지 않는다 (컬리 방식). */
}
.goods-card__price {
	font-size: 14px;
	font-weight: 900;
	white-space: nowrap;
	grid-column: 1;
	grid-row: 4;
	align-self: center;
}
/* 할인 상품 가격 표시 - product/view.html의 .view-price__origin / .view-price__sale과
   같은 방식(취소선 원가 + 강조 할인가)을 리스트 카드 가격 자리에 맞게 재사용.
   카드형은 가격 칸이 좁아 한 줄로 붙이면 옆 수량(qty)과 겹치므로, 원가를
   할인가 위에 쌓아 두 줄로 표시해 공간을 확보한다(리스트형은 가격 칸에
   display:flex가 따로 적용되어 있어 한 줄로 나란히 표시됨). */
.goods-card__price-origin {
	display: block;
	color: var(--c-text-light);
	text-decoration: line-through;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
}
.goods-card__price-sale {
	display: block;
	color: var(--c-text);
	font-weight: 900;
	line-height: 1.3;
}
.goods-grid > li .qty {
	grid-column: 2;
	grid-row: 4;
	justify-self: end;
	align-self: center;
}
/* 생산지 - 카드형에는 표시 공간이 없어 리스트형(.is-list-view)에서만 노출
   (규격은 261028 수정으로 물품명(.goods-card__name) 안으로 이동 → 맨 아래 참고) */
.goods-card__origin {
	display: none;
}

/* ==========================================================================
   리스트형 보기 (.view-toggle 클릭 시 .goods-grid에 is-list-view 클래스 토글)
   li를 display:contents로 풀어서 li 안의 요소들이 상위 .goods-grid 그리드에
   바로 배치되게 하고, 표 순서(이미지/물품명/가격/수량/담기)에 맞춰 마크업이
   이미 그 순서대로 되어 있어서 grid-column/row는 auto로 초기화만 해주면 된다.
   맨 위 .goods-list-head li가 표 헤더 역할을 한다.
   ========================================================================== */
.goods-grid > li.goods-list-head {
	display: none;
}
.goods-grid.is-list-view {
	display: grid;
	grid-template-columns: 76px 1fr 100px 110px 130px 100px;
	align-items: center;
	gap: 0;
}
.goods-grid.is-list-view > li {
	display: contents;
}
.goods-grid.is-list-view .goods-card__thumb,
.goods-grid.is-list-view .goods-card__name,
.goods-grid.is-list-view .goods-card__origin,
.goods-grid.is-list-view .goods-card__price,
.goods-grid.is-list-view .goods-card__cart,
.goods-grid.is-list-view .goods-card__deadline,
.goods-grid.is-list-view .qty {
	grid-column: auto;
	grid-row: auto;
	justify-self: stretch;
}
/* 물품명/생산지/가격은 내용이 길어져 행이 늘어나도 칸을 꽉 채워야
   구분선(border-bottom)이 행 맨 아래에 맞게 그어진다 */
.goods-grid.is-list-view .goods-card__name,
.goods-grid.is-list-view .goods-card__origin,
.goods-grid.is-list-view .goods-card__price {
	align-self: stretch;
}
/* 이미지/수량/담기버튼은 높이가 고정된 위젯이라 늘어난 행 안에서
   세로 중앙에 오도록 stretch 대신 center로 정렬한다 */
.goods-grid.is-list-view .goods-card__thumb,
.goods-grid.is-list-view .goods-card__cart,
.goods-grid.is-list-view .goods-card__deadline,
.goods-grid.is-list-view .qty {
	align-self: center;
}
.goods-grid.is-list-view .goods-card__origin {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 6px;
	border-bottom: 1px solid var(--c-border);
	font-size: 13px;
	color: var(--c-text-sub);
	text-align: center;
}
.goods-grid.is-list-view .goods-list-head {
	display: contents;
}
.goods-grid.is-list-view .goods-list-head span {
	padding: 12px 8px;
	background: var(--c-gray-bg);
	font-size: 13px;
	font-weight: 800;
	color: var(--c-text-sub);
	text-align: center;
}
.goods-grid.is-list-view .goods-card__thumb {
	width: 56px;
	height: 56px;
	margin: 8px auto;
	border-radius: 4px;
}
/* 리스트형에서는 뱃지를 썸네일 위 오버레이 대신 물품명 옆에 나란히 표시 */
.goods-grid.is-list-view .goods-badges {
	position: static;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 3px;
	flex: 0 0 auto;
}
.goods-grid.is-list-view .goods-badges .badge {
	height: 18px;
	padding: 0 5px;
	font-size: 10px;
}
.goods-grid.is-list-view .goods-card__name {
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-border);
	display: flex;
	align-items: center;
	gap: 6px;
	text-align: left;
}
.goods-grid.is-list-view .goods-card__price {
	padding: 10px 8px;
	border-bottom: 1px solid var(--c-border);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}
.goods-grid.is-list-view .qty {
	margin: 8px auto;
}
.goods-grid.is-list-view .goods-card__cart {
	width: auto;
	height: 32px;
	margin: 8px auto;
	padding: 0 14px;
}
.goods-grid.is-list-view .goods-card__deadline {
	margin: 0;
	padding: 6px 4px;
}

/* ----- Pagination ----- */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 50px;
}
.pagination a,
.pagination button {
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-border-dark);
	border-radius: var(--radius);
	font-size: 13px;
	color: #555;
}
.pagination a.is-active {
	background: var(--c-text);
	border-color: var(--c-text);
	color: #fff;
	font-weight: 700;
}
.pagination svg {
	width: 12px;
	height: 12px;
}
/* new */
.pagination a.disabled {
    pointer-events: none;
    opacity: 0.35;
    cursor: default;
}
/* end */


/*261028 추가*/
/* 규격 - 물품명(.goods-card__name) 안 맨 끝에 넣어 카드/리스트 공통으로 물품명 바로 아래 표시 */
.goods-card__spec {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	color: #888;
	line-height: 1.4;
}
/* 리스트형은 물품명 칸이 flex(이름+뱃지 가로배치)라 줄바꿈 허용 후 규격만 한 줄 전체 차지 */
.goods-grid.is-list-view .goods-card__name {
	flex-wrap: wrap;
	align-content: center;
	row-gap: 2px;
}
.goods-grid.is-list-view .goods-card__spec {
	flex: 0 0 100%;
	margin-top: 0;
}
/* 리스트형 할인가격 - 가로 한 줄이면 가격 칸(110px)을 넘쳐 생산지 쪽으로 밀리므로
   카드형처럼 원가를 할인가 위에 쌓아 두 줄로 표시 */
.goods-grid.is-list-view .goods-card__price {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
}
/* 리스트형 행 구분선 - 이미지/수량/담기 칸은 세로 중앙정렬 위젯이라 border가 없어
   줄이 중간에서 끊기므로, 물품명 칸에 가상요소로 행 전체 폭 라인을 그린다.
   left: 이미지 열(76px) / right: 생산지+가격+수량+장바구니 열(100+110+130+100=440px)
   → grid-template-columns 값을 바꾸면 이 숫자도 같이 맞춰줄 것 */
.goods-grid.is-list-view .goods-card__name {
	position: relative;
}
.goods-grid.is-list-view .goods-card__name::after {
	content: "";
	position: absolute;
	left: -76px;
	right: -440px;
	bottom: -1px;
	height: 1px;
	background: var(--c-border);
}