/* Home page styles */

.home-hero-slider {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--color-primary);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.home-hero-slider.is-dragging {
  cursor: grabbing;
}

.home-hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.home-hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.home-hero-slider.is-dragging .home-hero-track {
  transition: none;
}

.home-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.home-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.home-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-hero-arrow::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-top: 2px solid var(--color-white);
  border-left: 2px solid var(--color-white);
}

.home-hero-arrow-prev {
  left: clamp(18px, 3.6vw, 54px);
}

.home-hero-arrow-prev::before {
  transform: translateX(5px) rotate(-45deg);
}

.home-hero-arrow-next {
  right: clamp(18px, 3.6vw, 54px);
}

.home-hero-arrow-next::before {
  transform: translateX(-5px) rotate(135deg);
}

.home-hero-pagination {
  position: absolute;
  right: 50%;
  bottom: clamp(24px, 5vh, 54px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(52vw, 220px);
  gap: 10px;
  overflow: hidden;
  transform: translateX(50%);
}

.home-hero-pagination.has-fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.home-hero-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.home-hero-dot.is-active {
  background: var(--color-white);
}

.home-company-section {
  overflow: hidden;
  padding: clamp(72px, 9vw, 110px) 0 clamp(58px, 7vw, 86px);
  background: var(--color-white);
}

.home-company-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.home-company-logo {
  width: clamp(84px, 8.2vw, 124px);
  height: auto;
  margin-bottom: 42px;
}

.home-company-eyebrow {
  margin-bottom: 18px;
  color: var(--color-black);
  font-size: clamp(1.05rem, 1.42vw, 1.42rem);
  font-weight: 500;
  line-height: 1.35;
}

.home-company-copy h1 {
  max-width: none;
  margin: 0 0 18px;
  color: var(--color-black);
  font-size: clamp(1.9rem, 3.12vw, 3.35rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.12em;
}

.home-company-description {
  margin-bottom: clamp(58px, 7.4vw, 94px);
  color: var(--color-black);
  font-size: clamp(0.9rem, 1.12vw, 1.12rem);
  font-weight: 500;
  line-height: 1.6;
}

.home-product-carousel {
  width: min(100% - 96px, 1260px);
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.home-product-carousel.is-dragging {
  cursor: grabbing;
}

.home-product-track {
  display: flex;
  gap: 10px;
  padding: 0;
  transform: translateX(0);
  will-change: transform;
}

.home-product-card {
  flex: 0 0 clamp(224px, 18.7vw, 318px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fafafa;
  border: 1px solid #eeeeee;
}

.home-product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.home-feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.home-feature-watermelon {
  background: #fbffeb;
}

.home-feature-chestnut {
  background: #fff0bf;
}

.home-feature-orange {
  background: #fff0bf;
}

.home-feature-wholesale .home-feature-media {
  display: grid;
  place-items: center;
  background: transparent;
}

.home-feature-wholesale .home-feature-media img {
  width: min(76%, 560px);
}

.home-feature-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100%;
  padding: clamp(28px, 3vw, 46px) clamp(28px, 5vw, 88px);
  color: var(--color-black);
  text-align: center;
}

.home-feature-kicker,
.home-feature-eyebrow {
  margin: 0 0 clamp(12px, 1.1vw, 18px);
  font-size: clamp(0.98rem, 1.35vw, 1.42rem);
  font-weight: 400;
  line-height: 1.35;
}

.home-feature-kicker {
  margin-bottom: clamp(10px, 1vw, 16px);
  font-family: var(--font-sans);
}

.home-feature-copy h2 {
  margin: 0 0 clamp(28px, 3.1vw, 46px);
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.12em;
}

.home-feature-title-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  letter-spacing: 0.08em;
}

.home-feature-title-row strong {
  font-family: var(--font-sans);
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0;
}

.home-feature-description {
  margin: 0 0 clamp(24px, 2.5vw, 38px);
  font-size: clamp(0.94rem, 1.12vw, 1.18rem);
  font-weight: 400;
  line-height: 1.85;
}

.home-feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 52px;
  padding: 0 28px;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  background: var(--color-primary);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.home-feature-button:hover {
  background: var(--color-primary-hover);
}

.home-feature-button-brown {
  background: #6b3400;
}

.home-feature-button-brown:hover {
  background: #572a00;
}

.home-feature-button-orange {
  background: #ff8900;
}

.home-feature-button-orange:hover {
  background: #e87a00;
}

.home-feature-chestnut .home-feature-copy {
  padding-top: clamp(22px, 2.4vw, 38px);
  padding-bottom: clamp(22px, 2.4vw, 38px);
}

.home-feature-chestnut .home-feature-copy h2 {
  margin-bottom: clamp(22px, 2.5vw, 38px);
}

.home-feature-chestnut .home-feature-description {
  margin-bottom: clamp(18px, 2vw, 30px);
  line-height: 1.72;
}

.home-feature-wholesale .home-feature-copy h2 {
  margin-bottom: clamp(28px, 3vw, 44px);
}

.home-feature-media {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.home-feature-media img {
  width: 100%;
  height: auto;
  display: block;
}

.home-lineup-section {
  padding: clamp(70px, 8vw, 106px) 0 clamp(82px, 9vw, 126px);
  background: var(--color-white);
}

.home-lineup-heading {
  margin-bottom: clamp(42px, 5vw, 66px);
  color: var(--color-black);
  text-align: center;
}

.home-lineup-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.home-lineup-heading p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.64rem, 0.78vw, 0.82rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.home-import-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: 0.16em;
}

.home-import-heading p {
  font-family: inherit;
  font-size: clamp(1rem, 1.28vw, 1.36rem);
  line-height: 1.6;
}

.home-lineup-grid {
  display: grid;
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.1vw, 30px) clamp(24px, 3.4vw, 48px);
}

.home-lineup-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-lineup-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.24s ease;
}

.home-lineup-item:hover img {
  transform: translateY(-4px);
}

.home-store-cta {
  position: relative;
  display: grid;
  min-height: clamp(330px, 28vw, 460px);
  place-items: center;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../images/대문2.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.home-store-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100% - 48px, 980px);
}

.home-store-cta p {
  margin: 0 0 clamp(34px, 4vw, 52px);
  font-size: clamp(0.96rem, 1.25vw, 1.34rem);
  font-weight: 500;
  line-height: 1.7;
}

.home-store-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 46px;
  padding: 0 26px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-store-cta-button:hover {
  color: var(--color-black);
  background: var(--color-white);
}

@media (max-width: 860px) {
  .home-hero-slider {
    min-height: 420px;
  }

  .home-hero-arrow {
    width: 40px;
    height: 40px;
  }

  .home-hero-arrow::before {
    inset: 10px;
  }

  .home-company-section {
    padding: 64px 0;
  }

  .home-company-logo {
    margin-bottom: 32px;
  }

  .home-company-copy {
    width: min(100% - 32px, 620px);
    margin: 0 auto;
  }

  .home-company-copy h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: 0.06em;
  }

  .home-company-description {
    margin-bottom: 48px;
  }

  .home-product-card {
    flex-basis: min(72vw, 300px);
  }

  .home-product-carousel {
    width: min(100% - 32px, 620px);
  }

  .home-feature-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-feature-section.is-reversed .home-feature-media {
    order: 1;
  }

  .home-feature-section.is-reversed .home-feature-copy {
    order: 2;
  }

  .home-feature-copy {
    min-height: 420px;
    padding: 44px 24px;
  }

  .home-feature-copy h2 {
    margin-bottom: 34px;
    font-size: clamp(2.8rem, 15vw, 4.2rem);
    letter-spacing: 0.08em;
  }

  .home-feature-description {
    line-height: 1.9;
  }

  .home-feature-media {
    aspect-ratio: auto;
  }

  .home-lineup-section {
    padding: 58px 0 76px;
  }

  .home-lineup-heading {
    width: min(100% - 32px, 620px);
    margin: 0 auto 36px;
  }

  .home-lineup-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    letter-spacing: 0.1em;
  }

  .home-import-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .home-import-heading p {
    font-size: clamp(0.94rem, 4vw, 1.08rem);
  }

  .home-lineup-grid {
    width: min(100% - 36px, 620px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
  }

  .home-store-cta {
    min-height: 360px;
    background-attachment: scroll;
  }

  .home-store-cta p {
    font-size: clamp(0.92rem, 3.7vw, 1.08rem);
  }
}

@media (max-width: 520px) {
  .home-lineup-grid {
    width: min(100% - 56px, 320px);
    grid-template-columns: 1fr;
    gap: 38px;
  }
}
