@charset "utf-8";

/* swiper */
.swiper-backface-hidden .swiper-slide {
  text-align: center;
}


/* prev/next button */
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
}

.swiper-button-next,
.swiper-button-prev {
  height: 100%;
  top: 0;
  width: 7rem;
  margin-top: 0;
  color: var(--main-color);
  opacity: 0.3;
  transition: 0.15s ease-in-out;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
  right: 0;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
  left: 0;
}

/* pagination */
.swiper-pagination-bullet {
  background: #aaa;
}

.swiper-pagination-bullet-active {
  background: var(--main-color);
}


/* section title */
.section-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2.4rem;
}

.line {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: #111;
}

/* 퀵메뉴 ====================================== */
.quick-menu {
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.quick-title {
  font-size: 2.4rem;
  font-family: 'SA-EB';
}

.quick-menu .title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-menu .title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-menu .q-t2 {
  width: 100%;
  margin-left: 22.5px;
}


.quick-items {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.quick-item {
  width: 100px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  text-align: center;
  font-size: 1.4rem;
  color: var(--font-black);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.quick-item p {
  font-family: 'SA-M', sans-serif;
  color: #444;
}

.quick-item:hover {
  transform: translateY(-5px);
}

.quick-item:hover .q-icon {
  border: 2px solid var(--btn-color);
}

.quick-item .q-icon {
  width: fit-content;
  padding: 20px;
  border-radius: 20px;
  background: #fafafa;
  transition: .3s ease-in-out;
  border: 2px solid transparent;
}

.quick-item img {
  width: 35px;
  height: 35px;
}



/* 공통 섹션 ========================= */
.product-section {
  margin: 80px auto;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}


.section-title .emoji {
  width: 24px;
  height: 24px;
}

.view-all {
  font-family: 'SA-M', sans-serif;
  font-size: 1.4rem;
  color: #666;
  text-decoration: none;
  transition: 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

.view-all svg {
  width: 20px;
  fill: #666;
  transition: .2s ease-in-out;
}

.view-all:hover {
  color: var(--main-color);
}

.view-all:hover svg {
  fill: var(--main-color);
}

/* 카드 그리드 ========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-section.best .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-section.discount .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 추천/할인 상품 (어두운 오버레이) =========================== */
.product-section .product-card .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-section.best .product-card,
.product-section.discount .product-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.product-section.best .product-card:hover,
.product-section.discount .product-card:hover {
  transform: translateY(-5px);
}

.product-section.best .product-card img,
.product-section.discount .product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.product-section.best .product-card::after,
.product-section.discount .product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
  z-index: 1;
}

.product-section.best .product-info,
.product-section.discount .product-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  z-index: 2;
  color: #fff;
}

.product-section.best .product-info .title,
.product-section.discount .product-info .title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #fff;
}

.product-section.best .product-info .price,
.product-section.discount .product-info .price {
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0;
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.product-section.best .product-info .origin,
.product-section.discount .product-info .origin {
  text-decoration: line-through;
  color: #ccc;
  font-size: 1.5rem;
  font-weight: 100;
}

.product-section.best .product-info .sale,
.product-section.discount .product-info .sale {
  font-size: 1.6rem;
  color: var(--btn-color);
}

.badge_wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge_wrap .badge {
  background: var(--btn-color);
  /* background: linear-gradient(135deg, #00f0e4 0%,#00eef7 100%); */
  color: #fff;
  width: fit-content;
  font-size: 1.3rem;
  padding: 4px 10px;
  font-weight: 500;
/*   font-family: 'SA-M'; */
  border-radius: 20px;
}
.badge_wrap .badge.best_b{
  background: #00205c;
}
.badge_wrap .badge.sale_b{
  background: #00e2c0;
}

/* 카테고리 카드 (기존 밝은 스타일 유지) =================== */
.product-section.category .product-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.product-section.category .product-card:hover {
  transform: translateY(-5px);
}

.product-section.category .product-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.product-section.category .product-info {
  box-sizing: border-box;
  padding: 10px;
  padding-left: 0;
  color: var(--font-black);
}

.product-section.category .product-info .title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.product-section.category .product-info .price {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--font-black);
}

/* 이벤트 배너 ============================ */
.event-banner-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.event-box {
  width: 49%;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* 카테고리 ================================== */
section.category {
  background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
  padding-top: 6rem;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  margin-bottom: 12rem;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.category-tabs button {
  border: none;
  background: transparent;
  border: 1px solid var(--line-color);
  color: #999;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: .15s ease-in-out;
}

.category-tabs button:hover {
  border: 1px solid var(--main-color);
  color: var(--main-color);
}

.category-tabs button.active {
  background: var(--main-color);
  color: #fff;
  border: 1px solid var(--main-color);
  /* border: 1px solid var(--main-color);
  box-shadow: 0 0 0 1px var(--main-color); */
  font-weight: 600;
}