/*공지 배너*/
.top-notice {
  display: flex;
  align-items: center;
  background-color: #f8f9fb;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  overflow: hidden;
  margin-bottom: 50px;
}

.product-card a {
  text-decoration: none; /* 밑줄 제거 */
  color: inherit;         /* 부모의 색상 상속 */
}

.notice-badge {
  background-color: #e6007e;
  color: white;
  border-radius: 50px;
  font-size: 13px;
  padding: 4px 10px;
  margin-right: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.notice-slide-wrapper {
  height: 24px;
  overflow: hidden;
}

.notice-slide {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
}

.notice-text {
  height: 24px;
  line-height: 24px;
}

.category-toggle {
  margin-top: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 10px;
}

.category-btn-group {
  display: flex;
  gap: 8px;
}

.category-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-btn:hover {
  border-color: #6d50e5;
  color: #6d50e5;
}

.category-btn.active {
  background-color: #6d50e5;
  color: white;
  border-color: #6d50e5;
  font-weight: 600;
}

/* 브랜드 스크롤 */
.brand-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 17px auto;
  padding: 0 40px;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  user-select: none;
  background: white;
  border-radius: 50%;
  padding: 4px;
}

.scroll-arrow.left {
  left: 0;
}

.scroll-arrow.right {
  right: 0;
}

.scroll-arrow svg {
  width: 30px;
  height: 30px;
  fill: #000;
  pointer-events: none;
}

.brand-emblems-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.brand-emblems {
  display: flex;
  transition: transform 0.3s ease-in-out;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}

.brand-item {
    flex: 0 0 100px;
    text-align: center;
    cursor: pointer; /* 마우스 커서를 손 모양으로 변경 */
    transition: transform 0.2s ease; /* 호버 시 확대 효과를 위한 전환 */
}

.brand-item:focus {
  outline: none;
}

.brand-item img {
    width: 80px; /* 이미지 크기 조정 */
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px; /* 텍스트와의 간격 조정 */
    background-color: #f8f9fc;
    border-radius: 50%;
    padding: 5px;
}

.brand-item div {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.brand-item:hover {
    transform: scale(1.1); /* 호버 시 확대 효과 */
}

/* 프로모션 슬라이드 */
.promotion-section {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
}

.promotion-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.promotion-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  background: #000;
}

.slide-in {
  transform: translateX(100%);
  animation: slideLeft 0.5s ease-in-out forwards;
}

@keyframes slideLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}

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

.promotion-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 0 50px 55px;
  font-size: 30px;
  color: #1f1e1e;
  background: none;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.promotion-text.light-text {
  color: white;
}

.promotion-text.dark-text {
  color: #1f1e1e;
  text-shadow: none;
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 10px auto;
}

.control-icon {
  all: unset;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-icon svg {
  pointer-events: none;
}

.control-divider {
  width: 1px;
  height: 16px;
  background-color: #ccc;
}

.progress-bar {
  position: relative;
  flex: 1;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #222;
  width: 0%;
  transition: left 0.3s ease, width 0.3s ease;
}

.promotion-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.action-quick-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.quick-link-card {
  background: #f8f9fc;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 500;
  color: #222222;
  text-decoration: none;
  transition: background 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 18px;
  height: 60px;
  flex: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-link-card:hover {
  background: #eef1f7;
}

.product-section {
  margin-top: 30px;
  margin-bottom: 100px;
}

.product-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 28px;
  margin-top: 28px;
  border-bottom: 2px solid #000000;
  padding: 0 0 17px 0;
}
/* 슬라이더 자체 */
.product-slider-container {
 overflow: hidden;
  width: 100%;
  position: relative;
  
}
/* 슬라이더 래퍼 */
.product-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 40px; /* 좌우 버튼 공간 */
  max-width: 1280px;
  margin: 0 auto 17px auto;
  
}
.product-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}


/* 슬라이드 한 페이지 */
.slide-wrapper {
  display: flex;
  flex: 0 0 100%;
  gap: 18px;
  justify-content: flex-start;
  box-sizing: border-box;
}
/* 슬라이드 버튼 */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  width: 36px;
  height: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-btn.left {
  left: 0;
}
.scroll-btn.right {
  right: 0;
}
.scroll-btn svg {
  width: 20px;
  height: 20px;
  fill: #000;
  pointer-events: none;
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  user-select: none;
  background: white;
  border-radius: 50%;
  padding: 4px;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn svg {
  width: 30px;
  height: 30px;
  fill: #000;
  pointer-events: none;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 한 줄에 4개 카드 */
  gap: 18px; /* 카드 사이 간격 */
  transition: max-height 0.3s ease;
  width: 100%;
}

.product-grid.limited {
  max-height: calc(330px * 2); /* 처음에는 2줄만 표시 */
  overflow: hidden;
}
.product-grid.expanded {
  max-height: none; /* '더보기' 클릭 후 전체 보이도록 설정 */
}
.more-btn-wrap {
  text-align: center;
  margin-top: 20px;
}

.more-btn {
  padding: 8px 20px;
  font-weight: bold;
  background: #6d50e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
}

/* 상품 카드 */
.product-card {
  flex: 0 0 calc((100% - 3 * 18px) / 4);
  
  min-width: 0; /* 줄바꿈 방지 */
}

.grid-card {
  width: 100%; /* 그리드에서는 100% 너비 사용 */
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  transition: max-height 0.3s ease;
}

.product-grid.limited {
  max-height: calc(330px * 2);
  overflow: hidden;
}
.product-name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

/* Footer 스타일 */

.footer {
    background-color: #333; 
    color: #bbb; 
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    width: 100%; 
    box-sizing: border-box; 
}

.footer-content {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.footer-links li a {
    color: #bbb;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #fff; 
}

.footer-text {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-copyright {
    margin-top: 15px;
    font-size: 0.8em;
    color: #888; 
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

main.container-global {
    flex: 1; 
}

/* 반응형 */

@media (max-width: 430px) {
  .top-notice {
    flex-direction: column;
    font-size: 13px;
    padding: 10px;
    height: auto;
    margin-bottom: 30px;
  }

  .notice-badge {
    font-size: 12px;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .category-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .brand-wrapper {
    padding: 0 10px;
  }

  .scroll-arrow svg {
    width: 24px;
    height: 24px;
  }

  .brand-item {
    flex: 0 0 70px;
  }

  .brand-item img {
    width: 60px;
    height: 60px;
  }

  .brand-item div {
    font-size: 12px;
  }

  .promotion-text {
    font-size: 18px;
    padding: 0 15px 25px;
  }

  .slider-control {
    max-width: 100%;
    padding: 0 12px;
  }

  .control-icon {
    width: 28px;
    height: 28px;
  }

  .product-title {
    font-size: 18px;
    padding-bottom: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card img {
    height: 180px;
  }

  .quick-link-card {
    font-size: 15px;
    padding: 10px 14px;
    height: auto;
  }

  .action-quick-links {
    flex-direction: column;
    gap: 10px;
  }

  .more-btn {
    font-size: 13px;
    padding: 6px 14px;
  }
}