﻿@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--wrap: 1260px;
	--c-green-dark: #1f4a35;
	--c-green: #1e5036;
	--c-green-light: #e9faf0;
	--c-green-line: #d3ead9;
	--c-orange: #ea4c1f;
	--c-yellow-bg: #fdf7e4;
	--c-gray-bg: #ededed;
	--c-border: #e5e5e5;
	--c-border-dark: #d8d8d8;
	--c-text: #1c1c1d;
	--c-text-sub: #767676;
	--c-text-light: #999999;
	--radius: 4px;
}

body {
	font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-text);
	background: #fff;
	min-width: 1340px;
}

a {
	transition: color .15s ease;
}

button {
	font-family: inherit;
}

/* ==========================================================================
   체크박스 / 라디오 버튼 공통
   위쪽 reset.css에서 appearance:none 처리되어 브라우저 기본 모양이 사라지므로
   여기서 공통으로 다시 그려준다 (장바구니/주문서 등 폼이 있는 모든 페이지에서 사용).
   ========================================================================== */
input[type="checkbox"],
input[type="radio"] {
	display: inline-block;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 1px solid var(--c-border-dark);
	background: #fff;
	position: relative;
	vertical-align: middle;
	cursor: pointer;
}
input[type="checkbox"] {
	border-radius: 3px;
}
input[type="radio"] {
	border-radius: 50%;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
	border-color: var(--c-green);
}
input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid var(--c-green);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-green);
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
	background: var(--c-gray-bg);
	border-color: var(--c-border);
	cursor: not-allowed;
}

/* ==========================================================================
   Layout wrap
   ========================================================================== */
.wrap {
	width: var(--wrap);
	margin: 0 auto;
	position: relative;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
	border-bottom: 1px solid var(--c-border);
}
.header__inner {
	width: var(--wrap);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 104px;
}
.header__logo a {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.header__logo img {
	display: block;
	height: 65px;
}
.header__search {
	flex: 0 0 auto;
	width: 386px;
}
.header__search form {
	position: relative;
	display: flex;
	border: 1px solid var(--c-text);
	border-radius: 5px;
}
.header__search input[type="text"] {
	flex: 1;
	height: 47px;
	padding: 0 16px;
	font-size: 14px;
	border-radius: 5px;
	
}
.header__search button {
	width: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.header__search button i {
	font-size:20px;
	color:#282b2c;
	font-weight:800;
}
.header__util {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 14px;
	color: #202020;
}
.header__util a {
	white-space: nowrap;
}
.header__util .cart {
	display: flex;
	align-items: center;
}
.header__util .cart i{
	color:#004f3e;
	font-size:24px;
}
/* 공급일자 선택 버튼 (로그인 후 헤더에만 표시 - mypage 영역) */
.header__util .header-supdate {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	border: 1px solid var(--c-border-dark);
	border-radius: 999px;
	color: var(--c-green-dark);
	font-weight: 600;
}
.header__util .header-supdate i {
	font-size: 13px;
}
.header__util .header-supdate:hover {
	border-color: var(--c-green);
	background: var(--c-green-light);
}
/*.header__util .cart svg {
	width: 24px;
	height: 24px;
}*/

/* ==========================================================================
   GNB
   ========================================================================== */
.gnb {
	background: var(--c-green-dark);
}
.gnb__inner {
	width: var(--wrap);
	margin: 0 auto;
	display: flex;
	align-items: stretch;
	height: 70px;
}
.gnb__cate-wrap {
	flex: 0 0 207px;
	position: relative;
}
.gnb__cate{
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 25px;
	background: #202020;
	color: #fff;
	font-weight: 500;
	font-size: 18px;
	letter-spacing:-0.08rem;
}
.gnb__cate i {
	font-size:20px;
	color:#fff;
}
.gnb__menu {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	flex: 1;
}
.gnb__menu li {
	flex: 0 0 auto;
}
.gnb__menu a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
}
.gnb__menu li.is-active a,
.gnb__menu a:hover {
	font-weight: 500;
	color: #ffe1a8;
}
.gnb__all{
	flex: 0 0 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight:500;
	font-size: 18px;
}
.gnb__all i{
	font-weight:500;
	font-size:18px;
	color: #fff;
	margin-left:10px;
}
.gnb__cate i,
.gnb__all i {
	transition: transform .2s ease;
}
.gnb__cate.is-active i,
.gnb__all.is-active i {
	transform: rotate(180deg);
}

/* ----- 물품분류 전체보기 (풀다운 메뉴) ----- */
.category-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid var(--c-border);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .35s ease, opacity .25s ease;
	z-index: 90;
}
.category-menu.is-open {
	opacity: 1;
}
.category-menu__inner {
	position: relative;
	width: var(--wrap);
	margin: 0 auto;
	padding: 20px 0 40px;
}
.category-menu__close {
	position: absolute;
	top: 20px;
	right: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}
.category-menu__close i {
	font-size: 16px;
}
.category-menu .subm_txBx {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	padding-top: 40px;
}
.category-menu .subm_txBx + .subm_txBx {
	padding-top: 24px;
	margin-top: 24px;
	border-top: 1px solid var(--c-border);
}
.category-menu .b_intx2 li {
	margin-bottom: 8px;
}
.category-menu .b_intx2 li.menu_tit {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--c-green-dark);
}
.category-menu .b_intx2 li.menu_tit a {
	font-size: 16px;
	font-weight: 800;
	color: var(--c-text);
}
.category-menu .b_intx2 li a {
	font-size: 13px;
	color: var(--c-text-sub);
}
.category-menu .b_intx2 li a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

/* ----- 물품분류 전체보기 (마우스오버 플라이아웃, 쿠팡 스타일) - 미사용, 풀다운 메뉴로 교체하면서 주석처리 (필요시 복원용으로 남겨둠)
.cate-flyout {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 95;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s ease;
}
.gnb__cate-wrap:hover .cate-flyout {
	opacity: 1;
	visibility: visible;
}
.gnb__cate-wrap:hover .gnb__cate {
	background: #000;
}
.cate-flyout__list {
	position: relative;
	width: 207px;
	overflow: visible;
	background: #fff;
	border: 1px solid var(--c-border);
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .12);
}
.cate-flyout__list > li {
	border-bottom: 1px solid var(--c-border);
}
.cate-flyout__list > li:last-child {
	border-bottom: none;
}
.cate-flyout__list > li > a {
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	font-size: 14px;
	color: var(--c-text);
}
.cate-flyout__list > li:hover > a {
	background: var(--c-green-light);
	color: var(--c-green);
	font-weight: 700;
}
.cate-flyout__panel {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	width: 220px;
	height: 100%;
	background: #fff;
	border: 1px solid var(--c-border);
	border-left: none;
	box-shadow: 4px 4px 16px rgba(0, 0, 0, .12);
	padding: 18px 20px;
	overflow-y: auto;
}
.cate-flyout__list > li:hover .cate-flyout__panel {
	display: block;
}
.cate-flyout__panel li {
	margin-bottom: 10px;
}
.cate-flyout__panel li a {
	font-size: 14px;
	color: var(--c-text-sub);
}
.cate-flyout__panel li a:hover {
	color: var(--c-green);
	text-decoration: underline;
}
----- 주석 끝 ----- */

/* ----- 전체메뉴 (펼침 메뉴) ----- */
.gnb {
	position: relative;
}
.mega-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid var(--c-border);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .35s ease, opacity .25s ease;
	z-index: 90;
}
.mega-menu.is-open {
	opacity: 1;
}
.mega-menu__inner {
	position: relative;
	width: var(--wrap);
	margin: 0 auto;
	padding: 20px 0 40px;
}
.mega-menu__close {
	position: absolute;
	top: 20px;
	right: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}
.mega-menu__close i {
	font-size: 16px;
}
.mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 20px;
	padding-top: 40px;
}
.mega-menu__col h3 {
	font-size: 16px;
	font-weight: 800;
	color: var(--c-text);
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--c-green-dark);
}
.mega-menu__col h3 a {
	color: inherit;
}
.mega-menu__col ul li {
	margin-bottom: 10px;
}
.mega-menu__col ul li a {
	font-size: 14px;
	color: var(--c-text-sub);
}
.mega-menu__col ul li a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

/* ==========================================================================
   Common buttons / titles
   ========================================================================== */
.sec-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 30px;
	font-weight: 800;
	color: var(--c-text);
}
.sec-title .more {
	font-size: 16px;
	font-weight: 800;
	color: var(--c-green);
}
.btn-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 40px;
	border: 1px solid var(--c-border-dark);
	border-radius: var(--radius);
	font-size: 16px;
	color: #444;
	background: #fff;
}
.btn-more:hover {
	border-color: var(--c-green);
	color: var(--c-green);
}

.slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	/* 오른쪽 퀵메뉴(.cart-float, z-index:60)에 화살표가 가려져 클릭이 안 되던 문제 수정 */
	z-index: 65;
}
.slide-arrow i {
	font-size:16px;
	
}
.slide-arrow.prev { left: -20px; }
.slide-arrow.next { right: -20px; }

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.badge-fresh {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--c-green);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* price */
.price-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.price-row .origin {
	color: var(--c-text-light);
	text-decoration: line-through;
	font-size: 13px;
}
.price-row .sale {
	color: var(--c-text);
	font-weight: 700;
}
.price-row .sale em {
	color: var(--c-green);
}

/* qty stepper */
.qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--c-border-dark);
	border-radius: var(--radius);
	overflow: hidden;
	height: 30px;
}
.qty button {
	width: 28px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	font-size: 15px;
	color: #333;
}
.qty button.plus { border-right: 1px solid var(--c-border-dark); }
.qty button.minus { border-left: 1px solid var(--c-border-dark); }
.qty input {
	width: 40px;
	height: 100%;
	text-align: center;
	font-size: 13px;
}

/* ==========================================================================
   Cart widget (floating summary)
   퀵메뉴 컬럼(.quickmenu-col)은 폭 0으로 레이아웃에 영향을 주지 않으면서
   콘텐츠 컬럼과 같은 높이로 늘어난다. 예전엔 .cart-float에 top:130px 로
   sticky를 걸어서 화면 "위쪽"에 고정되다 보니 히어로 배너 슬라이드 화살표와
   겹치는 문제가 있었다.
   화면 "오른쪽 아래"에 고정되도록 하려면 fixed가 제일 먼저 떠오르지만,
   fixed는 콘텐츠 영역 끝을 몰라서 스크롤을 끝까지 내리면 푸터까지 덮어버림
   (실제로 확인해보니 그랬음). 그래서 sticky는 그대로 쓰되 top 값을
   "화면 높이 - 위젯 높이(약 633px) - 여백(24px)" 으로 계산해서 넣었다
   (calc(100vh - 657px)). 이러면 스크롤 중엔 위젯이 화면 하단에서 24px
   띄워진 위치에 붙어있는 것처럼 보이고, sticky 특성상 콘텐츠 영역
   (quickmenu-col) 바닥, 즉 푸터 바로 위에서는 원래처럼 자연스럽게 멈춘다
   (JS 없이 CSS만으로 처리). 위젯 내용이 늘어나 실제 높이가 달라지면
   657 부분의 숫자만 (새 높이+24) 로 맞춰주면 된다.
   ========================================================================== */
.quickmenu-col {
	flex: 0 0 0;
	width: 0;
	position: relative;
}
.cart-float {
	position: sticky;
	top: calc(100vh - 657px);
	width: 100px;
	margin-left: -100px;
	z-index: 60;
	background: #fff;
	border: 1px solid #2e2e2e;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.cart-widget {
	width: 100px;
	font-size: 12px;
	text-align: center;
}
.cart-widget__head {
	background: #4fa42c;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	padding: 8px 0;
}
.cart-widget dl {
	border-top: 1px solid var(--c-border);
	padding: 7px 4px;
}
.cart-widget dl:first-of-type {
	border-top: none;
}
.cart-widget dt {
	color: var(--c-text-sub);
	margin-bottom: 2px;
}
.cart-widget dd {
	font-weight: 700;
	font-size: 13px;
	color: #4fa42c;
}
.cart-widget dl.total {
	border-top: 2px solid #333;
	padding-top: 9px;
}
.cart-widget dd.total {
	font-size: 19px;
	color: var(--c-orange);
}
.cart-widget dl.total dt { color: var(--c-text); font-weight: 700; }
.recent-title {
	background: #728244;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	padding: 7px 0;
}
.recent-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 18px;
	background: #fff;
	color: #333;
}
.recent-arrow i {
	font-size: 12px;
}
.hero__recent {
	background: #fff;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform .35s ease;
}
.hero__recent img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid #b7b7b7;
	border-radius: 5px;
}
/* .recent-viewport 는 js/common.js 에서 .hero__recent 를 감싸 자동 생성 (마크업 수정 없이 오버플로우만 숨김).
   최근본상품 2개(이미지 82px + gap 8px + 상하패딩 16px = 188px)가 한 화면 분량. */
.recent-viewport {
	height: 188px;
	overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
	margin-top: 70px;
	border-top: 1px solid var(--c-border);
}
.footer__info {
	background: var(--c-gray-bg);
	padding: 40px 0;
}
.footer__info .wrap {
	display: flex;
	gap: 60px;
}
.footer__info .col {
	flex: 1;
}
.footer__info h3 {
	font-size: 30px;
	font-weight: 600;
	margin-bottom: 0px;
}
.footer__info .tel {
	font-size: 30px;
	font-weight: 900;
	margin-bottom: 8px;
}
.footer__info .desc {
	color: var(--c-text-sub);
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 12px;
}
.footer__info .photo-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--c-border-dark);
	border-radius: var(--radius);
	background: #fff;
	font-size: 16px;
	margin-right: 8px;
}
.footer__info .fax{
	font-size:16px;
	font-weight:700;
}
.footer__info .box {
	margin-top: 50px;
}
.footer__info .box .num {
	font-size: 30px;
	font-weight: 900;
	margin-bottom: 6px;
}
.footer__info .box .sub {
	color: var(--c-text-sub);
	font-size: 16px;
}
.deadline-note {
	font-size: 18px;
	color: var(--c-text-sub);
	line-height: 1.7;
	margin-bottom: 16px;
}
.deadline-note strong {
	color: var(--c-text);
	font-weight:800;
}
.deadline-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-bottom: 20px;
	table-layout: fixed;
	border-radius: 10px;
	border: 1px solid #b7b7b7;
	overflow: hidden;
}
.deadline-table th,
.deadline-table td {
	text-align: center;
	padding: 10px 6px;
	font-size: 16px;
	border-right: 1px solid #b7b7b7;
	border-bottom: 1px solid #b7b7b7;
}
.deadline-table th:last-child,
.deadline-table td:last-child {
	border-right: none;
}
.deadline-table tr:last-child th,
.deadline-table tr:last-child td {
	border-bottom: none;
}
.deadline-table tbody th {
	color: var(--c-green);
	font-weight: 700;
	width: 90px;
}
.deadline-table tbody tr:nth-child(odd) th,
.deadline-table tbody tr:nth-child(odd) td {
	background: var(--c-green-light);
}
.deadline-table tbody tr:nth-child(even) th,
.deadline-table tbody tr:nth-child(even) td {
	background: #ecf9de;
}
.footer__info .cs-title {
	font-size: 30px;
	font-weight: 600;
	margin-bottom: 8px;
}
.footer__info .cs-num {
	font-size: 30px;
	font-weight: 900;
}

.footer__gnb {
	background: var(--c-green-dark);
}
.footer__gnb ul {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	gap: 28px;
}
.footer__gnb a {
	color: #fff;
	font-size: 15px;
}
.footer__gnb a:hover {
	text-decoration: underline;
}

.footer__bottom {
	padding: 34px 0 50px;
}
.footer__bottom .wrap {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}
.footer__bottom img {
	width: 121px;
}
.footer__bottom .biz-name {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	color:#343434;
}
.footer__bottom p {
	font-size: 15px;
	color: var(--c-text-sub);
	line-height: 1.8;
}
.footer__bottom a {
	color: var(--c-text-sub);
}
.footer__bottom a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

/* ==========================================================================
   공통 Dialog 레이어 (js/common.js 의 Dialog.load(url, {title, width}))
   내용은 url 을 .dlg__body 에 load 해서 채운다 (예: 우편번호찾기 팝업)
   ========================================================================== */
.dlg {
	position: fixed;
	inset: 0;
	z-index: 1000;
}
.dlg[hidden] {
	display: none;
}
.dlg__dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
}
.dlg__panel {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 96vw;
	max-height: 94vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.dlg__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 18px;
	background: var(--c-green);
	color: #fff;
}
.dlg__title {
	font-size: 15px;
	font-weight: 800;
}
.dlg__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #fff;
	font-size: 18px;
}
.dlg__body {
	padding: 15px;
	overflow: auto;
}
