/* 기본 */
:root {
	--max-width: 1440px;
	--text-main: #222;
	--text-sub: #666;
	--accent: #e63b35;
	--accent-soft: #fbeaea;
	--line: #e6e6e6;
	--bg: #f7f7f7;
	--gray8: #808080;
	--gray9: #999;
}

* {
	font-family: 'pretendard', sans-serif !important;
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #fff;
	color: var(--text-main);
}

.page {
	background: #fff;
}

/* 공통 */
.default-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	z-index: 999;
	width: 40px;
	height: 40px;
	padding: 0;
	transform: translateY(-50%);
}

.default-nav img {
	display: block;
	width: 40px;
	height: 40px;
}

.default-prev {
	left: 180px;
}

.default-next {
	right: 180px;
}

.default-next img {
	transform: scaleX(-1);
}

.default-prev.is-dark img {
	transform: scaleX(-1);
}

.default-next.is-dark img {
	transform: none;
}

.section-block {
	padding: 70px 0;
}

.icon-figure,
.arrow-figure,
.footer-logo,
.time-icon,
.timesale-figure {
	margin: 0;
}

.icon-figure {
	display: flex;
	width: 32px;
	height: 32px;
}


@media screen and (max-width: 1440px) {
	.default-next {
		right: 20px !important;
	}
	.default-prev {
		left: 20px !important;
	}
}

/* 제품 공통 */
.card > figure {
	overflow: hidden;
	margin-bottom: 16px;
	border-radius: 8px;
}

.card figure img {
	display: block;
	width: 100%;
	object-fit: cover;
	transition: all 0.3s;
}

.card:hover > figure img {
	transform: scale(1.05);
}

.card .name {
	margin-bottom: 12px;
	color: var(--text-main);
	font-size: 20px;
	font-weight: 500;
	line-height: 140%;
}

.original {
	font-size: 20px;
	font-weight: 500;
	line-height: 140%;
	color: var(--gray8);
	text-decoration: line-through;
}

.price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 4px 0 4px;
}

.discount-rate {
	display: flex;
	align-items: baseline;
	gap: 2px;
	font-weight: 700;
	color: var(--accent);
}

.discount-rate .num {
	font-size: 30px;
}

.discount-rate .unit {
	font-size: 20px;
}

.final-price {
	display: flex;
	align-items: baseline;
	gap: 2px;
	font-weight: 700;
	color: var(--accent);
}

.final-price .num {
	font-size: 30px;
	color: #111;
}

.final-price .unit {
	font-size: 20px;
	color: #111;
}

@media screen and (max-width: 768px) {
	.final-price .num {
		font-size: 18px;
	}
	.discount-rate .num {
		font-size: 18px;
	}
	.final-price .unit {
		font-size: 16px;
	}
	.original {
		font-size: 16px;
	}
	.card .name {
		font-size: 16px;
	}
}


/* 메인 스와이퍼 */
.visual {
	position: relative;
}
.hero-swiper {
	position: relative;
	height: 460px;
	margin: 0 auto;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
	height: 100%;
}

.hero-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	color: #555;
}

.hero-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hero-title {
	font-size: 16px;
	font-weight: 600;
}

.hero-sub {
	font-size: 13px;
	color: #888;
}

.hero-swiper .swiper-pagination {
	bottom: 18px;
}
.hero-swiper .swiper-pagination-bullet,
.time-sale-swiper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #21212130;
	opacity: 1;
	transition: width 0.2s ease, background 0.2s ease;
}

.hero-swiper .swiper-pagination-bullet-active,
.time-sale-swiper .swiper-pagination-bullet-active {
	width: 40px;
	background: #212121;
}

.time-sale-swiper .swiper-pagination {
	position: static;
	margin-top: 40px;
}

@media screen and (max-width: 1400px) {
	.hero-swiper {
		height: 330px;
	}
	.hero-swiper .swiper-slide {
		background-size: cover;
		background-position: center center;
	}
}
@media screen and (max-width: 1024px) {
	.hero-swiper {
		height: 280px;
	}
}

/* 타임세일 */
.sale-section {
	background: #dff2e6;
}

.time-slide-wrap {
	position: relative;
}

.sale-banner {
	margin-bottom: 66px;
	text-align: center;
}

.timesale-img {
	max-width: 360px;
	width: 100%;
	height: auto;
}

.time-sale-swiper {
	max-width: var(--max-width);
}

.time-sale-swiper .swiper-wrapper {
	display: flex;
}

.card {
	overflow: hidden;
}

.time-left {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--accent);
	font-size: 12px;
	font-weight: 500;
	color: #fff;
}

.time-icon img {
	width: 18px;
	height: 18px;
}

.time-value {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 18px;
	font-weight: 700;
}

.time-value .days {
	font-weight: 700;
}

@media screen and (max-width: 1440px) {
	.time-slide-wrap {
		padding: 0 20px;
	}
	.time-sale-swiper {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.timesale-figure {
		display: inline-block;
		width: 240px;
	}
	.time-value {
		font-size: 16px;
	}
	.sale-banner {
		margin-bottom: 30px;
	}
}

/* 중간 배너 */

.mid-banner {
	max-width: var(--max-width);
	height: 155px;
	margin: 60px auto;
	border-radius: 4px;
	background: #d2d2d2;
}

@media screen and (max-width: 1440px) {
	.mid-banner {
		margin: 60px 20px;
	}
}

/* 상품 섹션 */
.product-section {
	position: relative;
	max-width: var(--max-width);
	margin: 0 auto 100px auto;
	padding: 0;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
}

.section-head h3 {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 140%;
}

.section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--text-sub);
	transition: all 0.3s;
}

.section-more:hover {
	color: var(--gray9);
}

.section-more .arrow-figure {
	display: flex;
}
.section-more span {
	font-size: 18px;
	font-weight: 700;
}

.filter-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
}
.filter {
	display: inline-flex;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	background: #f2f2f2;
}

.pill {
	padding: 6px 26px;
	border-radius: 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--gray9);
	transition: all 0.3s;
}

.pill.active {
	border-color: #2e9c5e;
	background: #2e9c5e;
	color: #fff !important;
}

.pill:hover {
	color: var(--text-main);
}

.product-grid-group {
	display: none;
}

.product-grid-group.is-active {
	display: grid;
}

.product-grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 60px;
}

@media screen and (max-width: 1440px) {
	.product-section {
		max-width: 100%;
		padding: 0 20px;
	}
}
@media screen and (max-width: 900px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media screen and (max-width: 768px) {
	.section-head h3 {
		font-size: 26px;
	}
	.pill {
		padding: 6px 15px;
		font-size: 16px;
	}
	.section-more {
		position: absolute;
		right: 15px;
		top: 7px;
	}
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 16px;
	}
}