@charset "UTF-8";

/* ==========================================================================
   Page flex (콘텐츠 컬럼 + 퀵메뉴 컬럼)
   ========================================================================== */
.page-flex {
	display: flex;
	align-items: stretch;
}
.page-content {
	flex: 1;
	min-width: 0;
}

/* ==========================================================================
   Hero banner
   ========================================================================== */
.hero {
	position: relative;
	background: #ece7de;
}
.hero__viewport {
	position: relative;
	height: 380px;
	overflow: hidden;
}
.hero__track {
	display: flex;
	height: 100%;
	width: 100%;
	/* 슬라이드 전환 애니메이션 - 원래 없어서 배너가 스르륵 넘어가지 않고
	   순간이동하듯 바로 바뀌었음 (다른 캐러셀(prd/rl-slider)은 js에서
	   transition을 직접 넣어주고 있어서 정상 작동, 히어로 배너만 누락) */
	transition: transform .5s ease;
}
.hero__item {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
}
.hero__item img {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: none;
	height: 100%;
	object-fit: cover;
}
.hero__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 4;
}
.hero__dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
}
.hero__dots button.is-active {
	background: var(--c-green-dark);
}
/* .cart-float(장바구니 위젯, 폭 100px)가 화면 오른쪽에 항상 고정되어 있어서,
   다음 화살표가 거기에 가리거나 겹쳐 보이지 않도록 위젯 폭(100px)보다
   더 안쪽으로 띄워서 배치했다 (예전엔 겹쳐서 아예 숨김 처리했었음).
   왼쪽 화살표만 40px 그대로 두면 오른쪽 화살표만 안쪽으로 들어가 보여서
   화살표 두 개가 짝이 안 맞고 왼쪽으로 쏠려 보이므로, 왼쪽도 같은 140px로
   맞춰서 배너 기준으로 좌우 대칭이 되도록 했다. */
.hero .slide-arrow.prev { left: 140px; }
.hero .slide-arrow.next { right: 140px; }

/* ==========================================================================
   Product sections (new / recommend)
   ========================================================================== */
.prd-section {
	width: var(--wrap);
	margin: 70px auto 0;
}
.prd-section .sec-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 24px;
}
.prd-slider {
	position: relative;
}
/* .slider-viewport 는 js/main.js 에서 .prd-list 를 감싸 자동 생성 (마크업 수정 없이 오버플로우만 숨김) */
.slider-viewport {
	overflow: hidden;
}
.prd-list {
	display: flex;
	gap: 30px;
}
.prd-list li {
	/* 한 화면에 5개씩 보이도록 고정폭으로 변경 (기존 flex:1은 아이템이 늘어나도 항상 다 욱여넣어 슬라이드가 동작하지 않는 문제가 있었음) */
	flex: 0 0 calc((100% - 120px) / 5);
	min-width: 0;
}
.prd-card {
	display: block;
}
.prd-card__thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius);
	overflow: hidden;
	background: #f4f2ee;
	margin-bottom: 14px;
}
.prd-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.prd-card__name {
	font-size: 14px;
	color: var(--c-text);
	margin-bottom: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight:500;
}
.prd-card__price {
	font-size: 14px;
	font-weight: 800;
}
.prd-card__price .origin {
	color: var(--c-text-light);
	text-decoration: line-through;
	font-size: 14px;
	font-weight: 600;
	margin-right: 4px;
}

/* ==========================================================================
   Community promo banner
   ========================================================================== */
.promo {
	position: relative;
	margin-top: 70px;
	height: 155px;
	overflow: hidden;
}
.promo > img {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: none;
	height: 100%;
	object-fit: cover;
}
.promo__inner {
	position: relative;
	z-index: 2;
	width: var(--wrap);
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.promo__text {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}
.promo__logo {
	height: 125px;
	width: auto;
}
.promo__btn {
	display: inline-flex;
	align-items: center;
	height: 46px;
	padding: 0 22px;
	background: #fff;
	border-radius: 5px;
	font-size: 20px;
	font-weight: 600;
	color: var(--c-text);
}

/* ==========================================================================
   Reserve / Limited section
   ========================================================================== */
.rl-section {
	width: var(--wrap);
	margin: 70px auto 0;
	display: flex;
	gap: 60px;
}
.rl-col {
	flex: 1;
	min-width: 0;
}
.rl-col h2 {
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 10px;
}
.rl-col .desc {
	color: var(--c-text-sub);
	font-size: 20px;
	margin-bottom: 18px;
}
.rl-col .btn-more {
	margin-bottom: 26px;
}
.rl-slider {
	position: relative;
}
.rl-list {
	display: flex;
	gap: 24px;
}
.rl-list li {
	/* 한 화면에 2개씩 보이도록 고정폭으로 변경 (prd-list와 동일한 이유) */
	flex: 0 0 calc((100% - 24px) / 2);
	min-width: 0;
}
.rl-list .prd-card__thumb {
	margin-bottom: 12px;
}
.rl-list .prd-card__name {
	white-space: normal;
	line-height: 1.4;
	height: 2.8em;
}

/* ==========================================================================
   Icon menu
   ========================================================================== */
.info-icon-menu {
	width: var(--wrap);
	margin: 70px auto 0;
	border:1px solid  #1e5036;
	border-radius: 5px;
	display: flex;
}
.info-icon-menu li {
	flex: 1;
}
.info-icon-menu li:first-child {
	border-left: none;
}
.info-icon-menu li a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 20px;
}
.info-icon-menu li a:hover h3 {
	color: var(--c-green);
}
.info-icon-menu .ic {
	flex: 0 0 auto;
	width: auto;
	height: 60px;
	color: var(--c-green);
	display: flex;
	align-items: center;
	justify-content: center;
}
.info-icon-menu .ic img {
	max-width: 100%;
	max-height: 100%;
}
.info-icon-menu h3 {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 4px;
}
.info-icon-menu p {
	font-size: 15px;
	color: var(--c-text-sub);
	line-height: 1.5;
	letter-spacing:-0.05rem;
}

/* ==========================================================================
   Notice / Bapsang
   ========================================================================== */
.info-section {
	width: var(--wrap);
	margin: 70px auto 0;
	display: flex;
	gap: 60px;
}
.info-col {
	flex: 1;
	min-width: 0;
}
.tab-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 30px;
	margin-bottom: 20px;
}
.tab-title button {
	color: var(--c-text-light);
	font-weight: 500;
}
.tab-title button.is-active {
	color: var(--c-text);
	font-weight: 700;
}
.tab-title .bar {
	color: var(--c-border-dark);
}
.notice-list li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--c-border);
}
.notice-list .tag {
	flex: 0 0 auto;
	background:#1b5c9b;
	color: #fff;
	border-radius:5px;
	font-size: 16px;
	padding: 3px 8px;
}
.notice-list .subject {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 16px;
	font-weight:600;
}
.notice-list .date {
	flex: 0 0 auto;
	color: var(--c-text-light);
	font-size: 16px;
}
.bapsang-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.bapsang-head .arrows {
	display: flex;
	gap: 6px;
}
.bapsang-head .arrows button {
	width: 26px;
	height: 26px;
	border: 1px solid var(--c-border-dark);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	/* 오른쪽 퀵메뉴(.cart-float, z-index:60)에 가려져 클릭이 안 되던 문제 수정 */
	position: relative;
	z-index: 65;
}
.bapsang-head .arrows svg {
	width: 12px;
	height: 12px;
}
.bapsang-list {
	display: flex;
	gap: 20px;
}
/* [hidden] 자체는 display:none 인데, 위의 .bapsang-list{display:flex} 와
   시디스(우선순위)가 같아서 나중에 쓰인 이 규칙이 이겨버려 감춰지지 않는
   문제가 있었다. [hidden]을 붙여 우선순위를 한 단계 높여서 확실히 감춘다.
   (우리농밥상/우리농 나눔터 탭 전환 시 사용) */
.bapsang-list[hidden] {
	display: none;
}
.bapsang-list li {
	/* 한 화면에 2개씩 보이도록 고정폭으로 변경 (prd-list와 동일한 이유) */
	flex: 0 0 calc((100% - 20px) / 2);
}
.bapsang-card {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius:10px;
	border:1px solid #b7b7b7;
	aspect-ratio: 230 / 166;
}
.bapsang-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bapsang-card span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	padding: 10px 0;
}
