/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

table {
  border-collapse: collapse;
}

hr {
  margin: 0;
  padding: 0;
}

.quickmenu-list {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
}

.quickmenu-link {
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.quickmenu-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F0F0F0;
  margin-bottom: 15px;
  position: relative;
}

.quickmenu-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;

  background: linear-gradient(0deg,

     #00bfff, /* 파랑 */
    #f8e71c, /* 노랑 */
    #32b3ff, /* 연파랑 */
    #f8e71c,/* 노랑 */
    #32b3ff,/* 연파랑 */
    #f8e71c,/* 노랑 */
    #32b3ff /* 연파랑*/
  );
  /* #00bfff, /* 파랑 
    #f8e71c, /* 노랑 
    #32b3ff, /* 연파랑 
    #f8e71c,/* 노랑 
    #32b3ff,/* 연파랑 
    #f8e71c,/* 노랑 
    #32b3ff /* 연파랑 */ 

  background-size: 100% 300%; /* 배경을 더 크게 */
  background-position: 50% 100%; /* 아래쪽에서 시작 */

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;

  animation: gradient-flow 6s linear infinite;
}

.quickmenu-icon:hover::after {
  opacity: 1;
}

@keyframes gradient-flow {
  0% {
    background-position: 50% 0%; /* 아래쪽에서 시작 */
  }
  100% {
    background-position: 50% 100%;   /* 위쪽으로 흐름 */
  }
}


.quickmenu-name {
  color: black;
}


/* 슬라이더 래퍼 */
.best-slider-wrapper {
  overflow: hidden;
  position: relative;
}

/* 슬라이더 버튼 스타일 */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 10;
  font-size: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
}

.prev-btn {
  left: -15px;
}

.next-btn {
  right: -15px;
}

/* 슬라이더 */
.best-slider {
  display: flex;
  width: calc(250px * 8);
  transition: transform 0.5s ease-in-out;
  padding-left: 10px;
}

/* 카드 */
.best-card {
  width: 280px;
  margin: 20px;
  text-align: center;
  vertical-align: top;
  position: relative;
  flex-shrink: 0;
  padding: 10px;
  box-sizing: border-box;
}

/* 랭크 넘버 원본 */
/* .rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  color: black;
  padding: 3px 10px;
  background:rgba(135, 206, 250); f8e71c
  font-weight: bold;
  font-size: 20px;
  z-index: 2;
} */

/* 랭크 넘버 모서리 둥근 사각형 */
.rank-number { 
  position: absolute; 
  top: 7px; 
  left: 8px; 
  width: 50px; 
  height: 31px; 
  /* 중간 톤의 퍼플 → 블루 그라데이션 */
  background: linear-gradient(135deg, #5f2eea, #5892f6 65%, #33defc 100%);
  color: white; 
  border-radius: 0 0 15px 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: bold; 
  font-size: 17px; 
  z-index: 2; 
}

	/* background: linear-gradient(135deg, #00c6ff, #0072ff); 밝은 청록 → 깊은 푸른색
	background: linear-gradient(135deg, #f1c40f, #f39c12); 노란색 → 주황색 그라디언트
	background: linear-gradient(135deg, #3a0ca3, #4361ee); 남색 → 포인트성 밝은 퍼플블루 */


/* .rank-number { 
	position: absolute; 
	top: 12px; 
	left: 12px; 
	width: 36px; 
	height: 36px; 
	background: linear-gradient(135deg, #f39c12, #e67e22); 
	color: white; 
	border-radius: 50% 10% 50% 10%; 
	display: flex; 
	align-items: center; 
	justify-content: center; 
	font-weight: bold; 
	font-size: 16px; 
	box-shadow: 0 4px 8px rgba(243, 156, 18, 0.4); 
	z-index: 2; 
	} */

.basket_event {
  width: 1230px;
  margin: 0 auto;
  margin-top: 60px;
  margin-bottom: 0px;
  padding: 0;
  /* background: rgb(230, 243, 255); #e8e7e5 *//* #e3e1dd *//* #f9f6f1 */
  background: none;
  border-radius: 15px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.event_banner {
  display: block;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%; 
  height: auto;
  font-weight: bold;
  color: #222;
}
.event_text {
  position: absolute;
  top: 50%;  /* 세로 중앙 정렬 */
  left: 20%; /* 가로 중앙 정렬 */
  transform: translate(-50%, -50%);
  color: #222;
  text-align: left;
  z-index: 2;
  padding: 18px 40px;
  border-radius: 10px;
}
.event_banner .event_text1 {
  display: inline-block;
  margin-right: 8px;
  font-size: 20px;
}
.event_banner .event_text2 {
  display: inline-block;
  margin-right: 12px;
  font-size: 20px;
}
.event_banner .event_text3 {
  display: inline-block;
  margin-right: 12px;
  font-size: 16px;
  font-weight: normal;
  margin-top: 4px;
}
.event_image img {
  width: 1230px;
  height: auto;
  object-fit: cover;
  /* margin-right: 300px;
  margin-top: 15px; */
  border-radius: 15px;
  display: block;
}

/* 베스트 컨테이너 */
.best-container {
  width: 1300px;
  margin: 60px auto;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* 베스트 타이틀 */
.best-title {
  display: flex;
  align-items: center;
  margin: 80px 0 0 30px;
}

.best-title h2 {
  padding-top: 6px;
}

.best-title img {
  width: 35px;
  height: 30px;
  margin-right: 14px;
}

/* 이미지 */
.best-container .image-link img {
  width: 262px;
  height: 262px;
  object-fit: cover; /* 이미지가 크기에 맞춰 잘림(비율 유지) */
  transition: transform 0.3s ease;
  border: 1px solid #eee;
  border-radius: 15px;
  display: block;
}

/* 이미지 링크에 position 설정 */
.best-container .image-link {
  position: relative;
  display: inline-block;
}

/* 이미지 hover 시 효과 */
.best-container .image-link:hover img {
  transform: scale(1.02);
  filter: saturate(0.8); /* 조금 더 생동감 */
  box-shadow: 0 5px 5px rgba(240, 240, 240, 0.8);
             /*  0 8px 16px rgba(135, 206, 250, 0.5); */ /* 화사한 연하늘 그림자 */
/*               box-shadow: 0 10px 25px rgba(173, 216, 230, 0.6);
              0 8px 16px rgba(135, 206, 250, 0.5); 화사한 연하늘 그림자 */
  transition: all 0.3s ease;
}

/* 이미지 hover 시 화사한 하단 오로라 느낌 */
.best-container .image-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px; /* ← 바로 이 높이가 '아래 선'의 두께 */
  border-radius: 0 0 15px 15px;
 /*  background: linear-gradient(90deg, rgba(0, 200, 255, 0.6), rgba(255, 255, 255, 0.4), rgba(100, 200, 255, 0.6)); */
 /*  box-shadow: 0 4px 10px rgba(173, 216, 230, 0.8); /* ← 선이 더 생생하게 보이는 이유 */
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}


/* 제품명 */
.best-container .product-name {
  font-size: 17px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  color: #000;
}

.best-container .product-name:hover {
  color: #0078ff;
}

/* 제품 가격 */
.best-container .product-price {
  color: black;
  font-size: 18px;
  margin-bottom: 20px;
}

/* 버튼 */
.best-container input[type="button"] {
  padding: 10px 20px;
  background-color: white;
  border: 1px #333 solid;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.best-container input[type="button"]:hover {
  background-color: black;
  color: white;
}


.discount-container {
  width: 1300px;
  margin: 80px auto 60px auto;
  /*padding: 20px;*/
  display: flex;
  /*align-items: flex-start;*/
  justify-content: flex-start; /* 양쪽 정렬 */
  /* 요소 간 균등 간격 space-around
     양 끝 정렬 + 사이 균등 space-between */
  flex-wrap: wrap;
  gap: 0;
  border-radius: 10px;
}

.discount-container .today-time {
  display: flex;
  flex-direction: column;  /* 세로 정렬 */
  align-items: flex-start; /* 좌측 정렬 */
  /*align-items: center; 세로 가운데 정렬 */
  margin: 80px 20px 0 50px;
  width: auto;
  height: 120px;

}

.discount-container .timer-box {
  display: flex;
  align-items: center;  /* 시계와 텍스트 수직 정렬 */
  /*gap: 8px;  사이 간격 */
  margin-top: 10px;
}

.discount-container .timer-box img {
  width: 60px;
}

.timer-box #timer{
  font-size: 50px;
}

.today-cards-wrapper, .discount-container, .left-daily-deal {
  position: relative;
  overflow: hidden;
}

/* .today-cards-wrapper::before,  */
.discount-container::before, .left-daily-deal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(45deg,
    #FAECC5,
    #FAF4C0,
    #E4F7BA,
    #CEFBC9,
    #D4F4FA,
    #B2EBF4,
    #5CD1E5);
  width: 100%;
  height: 100%;
  transform: scale(1.02);
  z-index: -1;
  background-size: 500%;
  animation: animate 20s infinite;
}

.today-cards-wrapper::after {
  filter: blur(10px); /* 블러 효과 추가 */
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 300% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.today-cards-wrapper{
	margin-left: 40px;
}

.discount-container .today-card {
  display: inline-block;
  width: 400px;
  text-align: center;
  padding: 10px;
  margin: 30px 0;
  background-color: white;
  overflow: hidden;  /* 둥근 테두리를 자식 요소에도 강제 적용 */
/*   border: 3px solid transparent;
  border-image: linear-gradient(45deg, #00bfff, #f8e71c, #32b3ff) 1; */
  border-radius: 20px;
}

.discount-container .image-link img {
  width: 330px;
  height: 330px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 20px;
}

.discount-container .image-link:hover img {
  transform: scale(1.02);
}

.discount-container .product-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 8px 10px 8px;
  cursor: pointer;
  color: #000;
}

.discount-container .product-name:hover{
  color: #0078ff;
}

.discount-container .product-price {
  color: black; /*d12f2f*/
  font-size: 18px;
  margin-bottom: 10px;
}

.discount-container .product-price .discount-rate {
    color: red;
    font-weight: 400;
    font-size: 30px;
    margin-right: 10px;
}

.discount-container .product-price .discount-price {
    color: #000;
    font-weight: bold;
    font-size: 30px;
    margin-right: 6px;
}

.discount-container .product-price .original-price {
    color: #888;
    text-decoration: line-through;
}

.discount-container .product-price .percent {
    font-size: 20px;
}

.discount-container .product-price .discount-won {
    color: #000;
    font-weight: 400;
    font-size: 20px;
}

.discount-container input[type="button"] {
  padding: 10px 20px;
  background-color: white; /*#ff6600*/
  /* #1560ef*/
  border: 1px #333 solid; /*#666*/
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 10px;
}

.discount-container input[type="button"]:hover {
  background-color: black; /*#e05500*/
  /*#1428a0*/
  color: white;
}

.main-body-container {
  width: 1300px;
  height: auto;
  margin: 40px auto;
  /* border: solid red 1px; */
}



/* 전체 레이아웃 */
.main-footer__left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 15px;
  width: 1250px;
  margin: 60px auto;
  background-color: #f8f8f8;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 섹션 제목 */
.main-mall__title,
.main-pcmall__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

/* 공통 리스트 스타일 */
.main-mall__list,
.main-pcmall__list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 공통 항목 스타일 */
.main-mall__item,
.main-pcmall__item {
  width: 72px; /* 이미지 크기에 따라 조절 */
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}


/* 이미지 공통 스타일 */
.main-mall__item img,
.main-pcmall__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.main-mall__item img:hover,
.main-pcmall__item img:hover {
  transform: scale(1.05);
}

/* 반응형 대응 */
@media (max-width: 768px) {
  .main-footer__left {
    padding: 10px;
  }

  .main-mall__list,
  .main-pcmall__list {
    gap: 10px;
    justify-content: center;
  }

  .main-mall__item,
  .main-pcmall__item {
    width: 60px;
    height: 28px;
  }
}


/* 베너 */
.c-list {
  width: 1300px;
  margin: 130px auto 80px auto;
}

.c-list__container {
  width: 1300px;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px; /* 배너 사이 간격 추가 */
}

.c-list__item:nth-child(1) img {
  width: 608px;
  height: 310px;
  border-radius: 10px;
}

.c-list__item:nth-child(2) img,
.c-list__item:nth-child(3) img,
.c-list__item:nth-child(4) img,
.c-list__item:nth-child(5) img {
  width: 292px;
  height: 310px;
  border-radius: 10px;
}

.c-list__item:nth-child(6) img {
  width: 608px;
  height: 310px;
  border-radius: 10px;
}

/* 애니메이션 키프레임 정의 */

@keyframes rainbow-rotate {
    0% {
        border-image-source: linear-gradient(0deg, red, orange, yellow, green, blue, indigo, violet);
    }
    25% {
        border-image-source: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    }
    50% {
        border-image-source: linear-gradient(180deg, red, orange, yellow, green, blue, indigo, violet);
    }
    75% {
        border-image-source: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
    }
    100% {
        border-image-source: linear-gradient(360deg, red, orange, yellow, green, blue, indigo, violet);
    }
} 


/* 
@keyframes rainbow-rotate {
    0% {
        border-image-source: linear-gradient(0deg, #0033cc, #3366ff, #6699ff, #99ccff);
    }
    25% {
        border-image-source: linear-gradient(90deg, #0033cc, #3366ff, #6699ff, #99ccff);
    }
    50% {
        border-image-source: linear-gradient(180deg, #0033cc, #3366ff, #6699ff, #99ccff);
    }
    75% {
        border-image-source: linear-gradient(270deg, #0033cc, #3366ff, #6699ff, #99ccff);
    }
    100% {
        border-image-source: linear-gradient(360deg, #0033cc, #3366ff, #6699ff, #99ccff);
    }
} 
*/

/* @keyframes rainbow-rotate {
  0% {
    border-image-source: linear-gradient(0deg, #a8d0ff, #fff7a8, #ffd6a8, #cfcfcf);
  }
  25% {
    border-image-source: linear-gradient(90deg, #a8d0ff, #fff7a8, #ffd6a8, #cfcfcf);
  }
  50% {
    border-image-source: linear-gradient(180deg, #a8d0ff, #fff7a8, #ffd6a8, #cfcfcf);
  }
  75% {
    border-image-source: linear-gradient(270deg, #a8d0ff, #fff7a8, #ffd6a8, #cfcfcf);
  }
  100% {
    border-image-source: linear-gradient(360deg, #a8d0ff, #fff7a8, #ffd6a8, #cfcfcf);
  }
} */


.section-header {
	text-align: center;
	padding: 30px 0;
}

.header-text {
	letter-spacing: 10px;
}

.partners-container {
	width: 1200px;
	margin: 0 auto;
	align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 0 48px;
}

.partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.partners-list .main-mall__item {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.partners-list .main-mall__item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partners-list .main-mall__item img {
    max-height: 100%;
}
