/* ==========================================
   Section 01 - Visual
   ========================================== */

#visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
  height: 100vh;
}

main#visual {
  height: 100vh;
  width: 100%;
  max-width: none;
  min-width: 0;
  display: block;
}

#visual .visual-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

#visual .visual-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  font-size: 18px;
  background-color: #3a3a3a;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
  z-index: 0;
}

#visual .visual-pane.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

#visual .visual-pane.visual-01 {
  background-image: url(../img/visual01.png), url(../img/visual01.svg);
}

#visual .visual-pane.visual-02 {
  background-image: url(../img/visual02.png), url(../img/visual02.svg);
}

#visual h1 {
  color: var(--color-white);
  font-size: var(--font-visual);
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  box-sizing: border-box;
  line-height: 1.25;
  text-align: center;
  will-change: transform, opacity;
}

/* Custom Controls */
.visual-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.slide-numbers {
  font-family: var(--font-title);
  display: flex;
  align-items: baseline;
  gap: 20px;
  color: #fff;
}
.slide-numbers span {
  display: inline-block;
  font-size: 24px;
  font-weight: 400;
  opacity: 0.4;
  transform: scale(1);
  transform-origin: center bottom;
  transition: all 0.4s ease;
}
.slide-numbers span.active {
  opacity: 1;
  font-weight: 700;
  transform: scale(1.2);
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  width: 150px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #fff;
  transition: width 0.1s linear;
}

/* .btn-play-pause {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.icon-play {
  display: inline-block;
  width: 0; 
  height: 0; 
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
  transition: all 0.2s ease;
}

.btn-play-pause.paused .icon-play {
  border-top: 0;
  border-bottom: 0;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
  width: 10px;
  height: 12px;
  background-color: transparent;
  box-sizing: border-box;
} */

/* ==========================================
   Section 02 - Best Product
   ========================================== */
/* Text Area */
.header-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(30px, 5vw, 80px) !important;
}

.new-txt {
  margin-bottom: clamp(30px, 5vw, 80px) !important;
}

.header-txt h2,
.new-txt h2 {
  font-size: var(--font-35);
  margin-bottom: 20px;
}

.header-txt p {
  font-size: var(--font-18);
  color: var(--color-txt-gray);
}

/* Seller items — 카드: 상단 이미지 박스(회색) + 하단 텍스트(흰색) */
.slide-item .slide-card-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  outline-offset: 2px;
}

.slide-item .slide-card-link:focus-visible {
  outline: 2px solid var(--color-primary, #1a1a1a);
}

.slider-wrap .seller-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  min-height: clamp(160px, 22vw, 240px);
  background-color: #f2f2f2;
}

.slider-wrap .seller-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-wrap .seller-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.slide-item .slide-card-link:hover .seller-img::before,
.slide-item .slide-card-link:focus-visible .seller-img::before,
.slide-item .slide-card-link:hover .seller-img::after,
.slide-item .slide-card-link:focus-visible .seller-img::after {
  transform: scale(1.045);
}

.slide-item .slide-card-link:hover .seller-img::after,
.slide-item .slide-card-link:focus-visible .seller-img::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .slider-wrap .seller-img::before,
  .slider-wrap .seller-img::after {
    transition-duration: 0.01ms;
  }

  .slide-item .slide-card-link:hover .seller-img::before,
  .slide-item .slide-card-link:focus-visible .seller-img::before,
  .slide-item .slide-card-link:hover .seller-img::after,
  .slide-item .slide-card-link:focus-visible .seller-img::after {
    transform: scale(1);
  }
}

.slider-wrap .slide-item[data-seller="1"] .seller-img::before {
  background-image: url(../img/best-sellers/best-sellers01.png);
}
.slider-wrap .slide-item[data-seller="2"] .seller-img::before {
  background-image: url(../img/best-sellers/best-sellers02.png);
}
.slider-wrap .slide-item[data-seller="3"] .seller-img::before {
  background-image: url(../img/best-sellers/best-sellers03.png);
}
.slider-wrap .slide-item[data-seller="4"] .seller-img::before {
  background-image: url(../img/best-sellers/best-sellers04.png);
}
.slider-wrap .slide-item[data-seller="5"] .seller-img::before {
  background-image: url(../img/best-sellers/best-sellers05.png);
}
.slider-wrap .slide-item[data-seller="6"] .seller-img::before {
  background-image: url(../img/best-sellers/best-sellers06.png);
}

.slider-wrap .slide-item[data-seller="1"] .seller-img::after {
  background-image: url(../img/best-sellers/best-sellers01-h.png);
}
.slider-wrap .slide-item[data-seller="2"] .seller-img::after {
  background-image: url(../img/best-sellers/best-sellers02-h.png);
}
.slider-wrap .slide-item[data-seller="3"] .seller-img::after {
  background-image: url(../img/best-sellers/best-sellers03-h.png);
}
.slider-wrap .slide-item[data-seller="4"] .seller-img::after {
  background-image: url(../img/best-sellers/best-sellers04-h.png);
}
.slider-wrap .slide-item[data-seller="5"] .seller-img::after {
  background-image: url(../img/best-sellers/best-sellers05-h.png);
}
.slider-wrap .slide-item[data-seller="6"] .seller-img::after {
  background-image: url(../img/best-sellers/best-sellers06-h.png);
}

/*.Slider — 가로 스크롤로 슬라이드 (transform/transitionend 불필요) */
.best-sellers .slider-wrap {
  width: 100%;
  position: relative;
  border-left: 1px solid #1a1a1a;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.best-sellers .slider-wrap::-webkit-scrollbar {
  display: none;
}

.slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
}

.slide-item {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-top: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  border-left: none;
  background-color: #fff;
  scroll-snap-align: start;
}

.slide-item .seller-txt {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 40px 24px;
  background-color: #fff;
}

.slide-item .seller-txt h3 {
  margin: 0;
  font-size: var(--font-18);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.slide-item .seller-txt .price {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  color: var(--color-txt-gray);
  line-height: 1.4;
}

.slide-item .seller-txt .price-sale-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-item .seller-txt .price-mark {
  color: var(--color-txt-light);
  text-decoration: line-through;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  line-height: 1.4;
}

.slide-item .seller-txt .price-sale {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  color: var(--color-bg-sale);
  line-height: 1.4;
}

.best-sellers {
  position: relative;
}

/* .best-sellers::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0.5px;
  border: 1px solid var(--color-primary); 
  transform: translateX(-50%); 
  pointer-events: none; 
} */

.controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

.best-sellers .controls button img {
  display: block;
  width: 75px;
  height: 75px;
  max-width: none;
}
/* product */

/* ==========================================
   Section 03 - New Product
   ========================================== */
.new {
  position: relative;
  padding-top: 0px !important;
  margin-top: var(--pad-y-80);
}

.new-info {
  width: 50%;
}

/* .new::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--color-primary);
  transform: translateX(-50%);
} */

.new-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* max-width: 1680px; */
  margin: 0 auto;
  background-color: var(--color-bg);
}

.new-img {
  width: 100%;
  height: 350px;
  background: url(../img/products/new.png) no-repeat center center/cover;
}

.new-txt {
  width: 100%;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}

.btn-primary {
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary);
}

@media screen and (min-width: 768px) {
  .new-wrap {
    flex-direction: row;
  }

  .new-img {
    width: 50%;
    height: auto;
    min-height: 500px;
  }

  .new-txt {
    width: 100%;
    padding: 80px 15% 0 10%;
  }

  .new-txt h2 {
    font-size: 40px;
  }

  .new-txt p {
    font-size: var(--font-16);
    margin-bottom: clamp(30px, 5vw, 80px) !important;
    color: var(--color-txt-gray);
  }
}

/* ==========================================
   Section 04 - Business
   ========================================== */
.business {
  padding-top: 0px !important;
}

.business-wrap {
  position: relative;
  width: 100%;
}

/* .business-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 172px;
  background-color: var(--color-primary);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
} */

.business-head {
  border-bottom: 1px solid var(--color-primary);
  width: 100%;
}
.business-head .flex-row {
  display: flex;
}
.head-left {
  width: 50%;
  padding: 40px 0px;
}
.head-right {
  width: 50%;
}
.acc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acc-item {
  border-bottom: 1px solid var(--color-primary);
  cursor: pointer;
  width: 100%;
  min-height: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
  width: 100%;
}

.acc-body-inner {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.acc-item.active .acc-body {
  grid-template-rows: 1fr;
}

.img-box {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background-color: #e6e0d8;
  background-size: cover;
  background-position: center;
}

.business .img-box.img-01 {
  background-image: url("../img/projects/project01.png");
}
.business .img-box.img-02 {
  background-image: url("../img/projects/project02.png");
}
.business .img-box.img-03 {
  background-image: url("../img/projects/project03.png");
}
.business .img-box.img-04 {
  background-image: url("../img/projects/project05.png");
}

.text-inner {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  width: 100%;
}

.txt-box {
  width: 50%;
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 380px;
  padding-bottom: 70px;
  box-sizing: border-box;
}

.txt-box h3 {
  font-size: 28px;
  font-family: serif;
  margin-bottom: 15px;
}

.txt-box p {
  font-size: var(--font-16);
  color: #666;
  line-height: 1.6;
  margin-bottom: clamp(30px, 5vw, 80px) !important;
}

.num-inner {
  position: relative;
  height: 0;
  width: 100%;
}

.acc-num {
  position: absolute;
  bottom: 26px;
  right: 20px;
  font-size: var(--font-16);
  font-weight: 500;
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .new-info {
    width: 100%;
  }

  .new-txt {
    width: 100% !important;
  }

  .new-desc {
    margin-bottom: 40px !important;
  }

  .business-wrap::before {
    display: none;
  }

  .business-head .flex-row,
  .acc-body-inner {
    flex-direction: column;
  }

  .head-left,
  .head-right,
  .img-box,
  .txt-box {
    width: 100%;
  }

  .img-box {
    position: relative;
    height: 250px;
    bottom: auto;
    border-bottom: 1px solid var(--color-primary);
  }

  .txt-box {
    min-height: auto;
    padding: 30px 20px 80px 20px;
  }

  .main-photo {
    max-height: 400px;
  }
  .line-top-vt,
  .footer-mid::before {
    display: none;
  }
}

/* ==========================================
   Section 05 - Review
   ========================================== */
.review {
  background: var(--color-bg-second);
}
.review-card {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
}
.review-card .r-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}
.review-card:hover .r-img {
  transform: scale(1.05);
}

.review-swiper {
  display: block;
  width: 100%;
}

.review-swiper swiper-slide {
  display: block;
  width: 100%;
  height: auto;
}

.review-card {
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
}
/* ==========================================
   Review Modal (Popup)
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* 헤더 (고정) */
.modal-header {
  position: relative;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.modal-header h3 {
  font-size: var(--font-16);
  font-weight: 600;
  margin: 0;
}
.btn-close-modal {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: var(--font-18);
  cursor: pointer;
  color: #666;
}

.modal-body {
  overflow-y: auto;
  padding: 20px;
}

.prod-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.prod-thumb {
  width: 60px;
  height: 60px;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
}
.prod-txt .name {
  font-family: var(--font-title);
  font-size: var(--font-18);
  font-weight: 600;
  margin-bottom: 5px;
}
.prod-txt .star {
  font-size: var(--font-14);
  color: var(--color-txt-gray);
}

.review-gallery {
  margin-bottom: clamp(20px, 4vw, 40px) !important;
}
.main-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}
.thumb-list {
  display: flex;
  gap: 10px;
}
.th-photo {
  flex: 1;
  aspect-ratio: 1 / 1;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.6;
}
.th-photo.active {
  opacity: 1;
  border: 1px solid var(--color-primary, #1a1a1a);
}

.review-detail {
  padding: 20px;
  border: 1px solid var(--color-primary);
}
.user-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.user-top .u-name {
  font-weight: 600;
  font-size: var(--font-18);
}
.user-top .u-date {
  color: var(--color-txt-gray);
  font-size: var(--font-14);
}

.user-meta {
  color: var(--color-txt-gray);
  font-size: var(--font-12);
}

.review-rating {
  margin-bottom: clamp(15px, 2vw, 20px) !important;
}
.review-rating .stars {
  color: var(--color-primary);
  font-size: var(--font-16);
  margin-right: 10px;
}
.review-rating .badge {
  font-size: var(--font-14);
  font-weight: 500;
}

.review-txt {
  font-size: var(--font-14);
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: clamp(20px, 4vw, 40px) !important;
}

/* ==========================================
   Partners — footer 
   ========================================== */
.partners-marquee {
  --partners-gap: clamp(56px, 8vw, 120px);
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  overflow: hidden;
  background: var(--color-bg-second);
}

.partners-marquee__heading {
  text-align: center;
  font-family: var(--font-main, "Nunito Sans", sans-serif);
  font-size: var(--font-12);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 0 0 clamp(1.35rem, 3vw, 2rem);
  padding: 0 20px;
}

.partners-marquee__mask {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.partners-marquee__track {
  display: flex;
  width: max-content;
  animation: partners-marquee-x 55s linear infinite;
}

.partners-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--partners-gap);
  padding-right: var(--partners-gap);
}

.partners-marquee__group img {
  height: clamp(36px, 5vw, 56px);
  width: auto;
  max-width: min(260px, 42vw);
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0);
  opacity: 0.88;
}

@keyframes partners-marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee__track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    row-gap: 1rem;
    padding: 0 20px;
  }

  .partners-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .partners-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: clamp(24px, 4vw, 48px);
  }
}

@media (max-width: 500px) {
  .best-sellers .controls button img {
    width: 40px;
    height: 40px;
  }
  .controls {
    gap: 10px;
  }
  .header-txt h2,
  .new-txt h2 {
    margin-bottom: 10px;
  }
  .head-left {
    padding: 0px;
  }
  .acc-list {
    margin-top: 40px;
  }
  .business-head {
    border-bottom: none;
  }
  .txt-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .footer-top {
    padding: 40px 0;
  }
  .footer-mid .contact .link-instagram {
    margin-left: 30px;
  }
  .footer-mid .flex-between {
    flex-direction: column;
    align-content: flex-start;
    gap: 10px;
  }
}
