/* 레이아웃 공통 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/*  상단 헤더  */
.main-header {
  background-color: var(--background-color);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 90px;
}

.header-content {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 30px;
}

.header-first {
  display: flex;
  justify-content: left;
  gap: 30px;
}

.logo img {
  width: 124px;
  vertical-align: middle;
}

/* 검색창 영역 */
.search-form {
  flex-grow: 1;
  max-width: 400px;
  min-width: 300px;
}

.search-form fieldset {
  border: none;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 50px 0 22px;
  border: 2px solid var(--point-color);
  border-radius: 50px;
  font-size: 1.6rem;
  outline: none;
}

.search-btn {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
}

.search-btn img {
  width: 28px;
  height: 28px;
}

/* 네비게이션 영역 */
.nav-list {
  display: flex;
  gap: 26px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--input-txt-color);
  font-size: 1.2rem;
}

.nav-link img {
  width: 32px;
  height: 32px;
}

/* 메인 배너 슬라이더  */
.hero-banner {
  width: 100%;
  aspect-ratio: 1920 / 500;
  background-color: var(--gray-color);
  position: relative;
  margin-bottom: 80px;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

/* 슬라이더 컨테이너 */
.slider-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.slider-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  width: 100%;
  height: 500px;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* 슬라이드 텍스트 콘텐츠 */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content h3 {
  font-size: 4.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

/* 슬라이드 오버레이 (텍스트 가독성) */
.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 컨트롤 버튼 */
.slider-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.slider-controls button img {
  width: 24px;
  height: 24px;
}

.prev-btn {
  left: 30px;
}

.prev-btn img {
  transform: rotate(180deg);
}

.next-btn {
  right: 30px;
}

/* 인디케이터 */
.indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background-color: #fff;
  transform: scale(1.2);
}

/*  상품 목록 그리드 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 78px 70px;
  padding-bottom: 100px;
}

.product-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* 정사각형 유지 */
  border-radius: 10px;
  border: var(--border);
  overflow: hidden;
  margin-bottom: 16px;
  background-color: var(--gray-color);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.05);
}

/* 상품 정보 텍스트 */
.brand-name {
  display: block;
  font-size: 1.4rem;
  color: var(--input-txt-color);
  margin-bottom: 10px;
}

.product-name {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 10px;
}

.product-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-color);
}

.product-price .amount {
  font-size: 2.4rem;
  font-weight: 700;
}

.product-price .unit {
  font-size: 1.6rem;
  font-weight: 400;
  margin-left: 2px;
}

/** footer **/

.footer {
  width: 100%;
  background-color: #f2f2f2;
  padding: 60px 0 63px;
  margin-top: auto;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-nav {
  flex: 1;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.footer-links li a {
  font-size: 1.4rem;
  color: #767676;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: #000000;
  font-weight: 700;
}

.footer-links li a.bold {
  font-weight: 700;
  color: #000000;
}

.footer-sns {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-sns .sns-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #767676;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.footer-sns .sns-link:hover {
  background-color: #5a5a5a;
}

.footer-sns .sns-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-divider {
  border: none;
  border-top: 1px solid #c4c4c4;
  margin: 0 0 30px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-info p {
  font-size: 1.4rem;
  color: #767676;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.company-name {
  font-weight: 700;
  color: #000000;
}

/* 반응형 그리드 */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .container {
    padding: 0 20px;
  }
}
