@charset "UTF-8";

.page-main {
  position: relative;
}

.home-main-visual {
  position: sticky;
  top: var(--gnb-offset);
  z-index: 1;
}

.home-main-visual__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  height: calc(100svh - var(--gnb-offset));
  min-height: calc(100svh - var(--gnb-offset));
}

.home-main-visual__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.72s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.home-main-visual__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: calc(100svh - var(--gnb-offset));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(28px, 4.2vw, 52px);
  color: #ffffff;
  overflow: hidden;
}

.home-main-visual__slide::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -18%;
  width: clamp(180px, 26vw, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 68%, transparent 70%);
}

.home-main-visual__slide::after {
  content: "";
  position: absolute;
  inset: auto auto -48% -10%;
  width: clamp(220px, 28vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 72%);
}

.home-main-visual__slide > * {
  position: relative;
  z-index: 1;
}

.home-main-visual__slide--01 {
  background: linear-gradient(120deg, #0f2a6f 0%, #3f5fc4 58%, #76c0f4 100%);
}

.home-main-visual__slide--02 {
  background: linear-gradient(120deg, #4f3600 0%, #9f6f09 52%, #d7b55f 100%);
}

.home-main-visual__slide--03 {
  background: linear-gradient(120deg, #0f3b4b 0%, #1f6c85 52%, #63aeb5 100%);
}

.home-main-visual__kicker {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.home-main-visual__slide h1,
.home-main-visual__slide h2 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 760px;
}

.home-main-visual__slide p {
  margin: 0;
  max-width: 640px;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.home-main-visual__controls {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 2.4vw, 32px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-main-visual__nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(12, 21, 48, 0.62);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-main-visual__nav i {
  font-size: 1.35rem;
}

.home-main-visual__pagination {
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 21, 48, 0.62);
  backdrop-filter: blur(4px);
}

.home-main-visual__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.home-main-visual__dot.is-active {
  width: 28px;
  background: #ffffff;
}

.home-main-visual__nav:hover,
.home-main-visual__nav:focus-visible {
  background: rgba(12, 21, 48, 0.8);
}

.home-main-visual__dot:hover,
.home-main-visual__dot:focus-visible {
  background: rgba(255, 255, 255, 0.72);
}

.home-main-visual__dot.is-active:hover,
.home-main-visual__dot.is-active:focus-visible {
  background: #ffffff;
}

.home-main-visual__nav:focus-visible,
.home-main-visual__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.home-products,
.home-youtube,
.home-pharmacy-banner {
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.home-products {
  margin-top: 0;
  min-height: calc(100svh - var(--gnb-offset));
}

.home-products__inner {
  box-shadow: none;
  border-radius: 0;
  border: 0;
  background: #ffffff;
  padding: 0;
  min-height: inherit;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.home-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  height: 100%;
  gap: 0;
}

.home-product-card {
  --product-card-start: #5f3f02;
  --product-card-end: #be8a11;
  --product-card-glow: rgba(255, 239, 196, 0.34);
  border-radius: 0;
  padding: 18px 18px 16px;
  min-height: 0;
  height: 100%;
  color: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(130deg, var(--product-card-start) 0%, var(--product-card-end) 100%);
  box-shadow: 0 10px 24px rgba(17, 30, 64, 0.2);
  transform: translate3d(0, 0, 0);
  transition: transform 0.48s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.48s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s ease;
}

.home-product-card::before {
  content: "";
  position: absolute;
  inset: -26% -12% auto auto;
  width: clamp(140px, 20vw, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--product-card-glow), rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
  animation: home-product-glow 7.2s ease-in-out infinite;
}

.home-product-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -85%;
  width: 58%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, 0.34) 52%, rgba(255, 255, 255, 0) 92%);
  opacity: 0.65;
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.8s cubic-bezier(0.18, 0.86, 0.23, 1), opacity 0.3s ease;
  pointer-events: none;
}

.home-product-card > * {
  position: relative;
  z-index: 1;
}

.home-product-card[data-aos="home-product-reveal"].aos-init {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.965) rotateX(7deg);
  filter: blur(1.2px) saturate(0.9);
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
}

.home-product-card[data-aos="home-product-reveal"].aos-init.aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0);
  filter: none;
}

.home-product-card:hover,
.home-product-card:focus-within {
  transform: translate3d(0, -8px, 0);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(10, 20, 52, 0.3);
}

.home-product-card:hover::after,
.home-product-card:focus-within::after {
  transform: translateX(170%) skewX(-18deg);
}

.home-product-card[data-aos="home-product-reveal"].aos-init.aos-animate:hover,
.home-product-card[data-aos="home-product-reveal"].aos-init.aos-animate:focus-within {
  transform: translate3d(0, -8px, 0);
}

.home-product-card a:hover,
.home-product-card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(9, 34, 93, 0.2);
}

.home-product-card a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.home-product-card--gold {
  --product-card-start: #5f3f02;
  --product-card-end: #be8a11;
  --product-card-glow: rgba(255, 239, 196, 0.38);
}

.home-product-card--premium {
  --product-card-start: #2e315f;
  --product-card-end: #625ca6;
  --product-card-glow: rgba(228, 220, 255, 0.35);
}

.home-product-card--cplus {
  --product-card-start: #5f2a0d;
  --product-card-end: #d26a2f;
  --product-card-glow: rgba(255, 220, 195, 0.36);
}

.home-product-card h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.38rem);
  line-height: 1.36;
  letter-spacing: -0.01em;
}

.home-product-card p {
  margin: 10px 0 0;
  font-size: clamp(0.93rem, 1.04vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.home-product-card a {
  margin-top: 16px;
  border-radius: 0;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #112b6d;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.home-products__action {
  margin-top: 0;
  width: 100%;
  display: block;
}

.home-products__finder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(56px, 7.2vw, 86px);
  padding: 0 24px;
  border-radius: 0;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(120deg, #14337f 0%, #3259be 100%);
}

.home-youtube__inner {
  border: 0;
  padding: clamp(22px, 3.2vw, 34px);
}

.home-youtube__inner h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.home-youtube__lead {
  margin: 12px 0 18px;
  color: #4b5563;
  font-size: clamp(0.96rem, 1.1vw, 1.07rem);
  line-height: 1.65;
}


.home-pharmacy-banner__inner {
  padding: clamp(24px, 3.4vw, 36px);
  background: linear-gradient(125deg, #102a72 0%, #2554b8 50%, #4ca0e4 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-pharmacy-banner__inner::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -50%;
  width: clamp(180px, 24vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 72%);
}

.home-pharmacy-banner__inner h2,
.home-pharmacy-banner__inner p,
.home-pharmacy-banner__btn {
  position: relative;
  z-index: 1;
}

.home-pharmacy-banner__inner h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.home-pharmacy-banner__inner p {
  margin: 12px auto 0;
  max-width: 680px;
  text-align: center;
  font-size: clamp(0.95rem, 1.08vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.96);
}

.home-pharmacy-banner__btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 0;
  background: #ffffff;
  color: #14337f;
  font-size: 0.98rem;
  font-weight: 700;
}

@media (max-width: 1600px) and (min-width: 1201px) {
  .home-main-visual__slide {
    padding: clamp(24px, 3.2vw, 44px);
  }

  .home-product-card {
    padding: 16px;
  }
}

@media (max-width: 1200px) {
  .home-main-visual {
    position: relative;
    top: 0;
  }

  .home-main-visual__viewport {
    height: auto;
  }
}

@media (max-width: 768px) {
  .home-main-visual__slide {
    gap: 10px;
    padding: 24px var(--container-gutter);
  }

  .home-main-visual__controls {
    gap: 8px;
    bottom: 14px;
  }

  .home-main-visual__nav {
    width: 38px;
    height: 38px;
  }

  .home-main-visual__pagination {
    height: 38px;
    padding: 0 9px;
    gap: 6px;
  }

  .home-main-visual__dot {
    width: 8px;
    height: 8px;
  }

  .home-main-visual__dot.is-active {
    width: 22px;
  }

  .home-products__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-product-card:hover,
  .home-product-card:focus-within {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 10px 24px rgba(17, 30, 64, 0.2);
  }

  .home-product-card[data-aos="home-product-reveal"].aos-init.aos-animate:hover,
  .home-product-card[data-aos="home-product-reveal"].aos-init.aos-animate:focus-within {
    transform: translate3d(0, 0, 0);
  }

  .home-youtube__inner {
    padding: 20px var(--container-gutter);
  }

  .home-pharmacy-banner__inner {
    padding: 22px var(--container-gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-main-visual__track {
    transition: none;
  }

  .home-product-card,
  .home-product-card::after,
  .home-product-card a {
    transition: none;
  }

  .home-product-card::before {
    animation: none;
  }

  .home-product-card[data-aos="home-product-reveal"].aos-init,
  .home-product-card[data-aos="home-product-reveal"].aos-init.aos-animate {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes home-main-visual-slide {
  0%,
  28% {
    transform: translateX(0);
  }
  33%,
  61% {
    transform: translateX(-100%);
  }
  66%,
  94% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes home-product-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }
  50% {
    transform: translate3d(-7%, 10%, 0) scale(1.08);
    opacity: 1;
  }
}
