/* Smart Store Section - Card Grid Design (projects.html category-menu 스타일 재사용) */

.smart-store {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.smart-store-title {
  text-align: left;
  margin-bottom: 50px;
}

/* 타이틀과 버튼 함께 배치 */
.title-with-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.title-with-buttons h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 슬라이더 네비게이션 버튼 */
.slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  color: #1a1a1a;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.slider-nav-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

.slider-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.slider-nav-btn i {
  display: block;
  line-height: 1;
}

.smart-store-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-family: 'Pretendard', sans-serif;
}

/* 최신 제품을 확인하세요 - 깔끔한 타이틀 */
.smart-store-main-title {
  font-size: 40px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.02em;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  text-align: left;
  line-height: 1.4;
  font-style: normal;
  text-shadow: none;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #1a1a1a;
  background-clip: unset;
  position: relative;
  display: block;
}

.smart-store-title .text-primary {
  color: #667eea;
}

.coming-soon-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-top: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.coming-soon-text {
  font-style: italic;
  opacity: 0.8;
}

.smart-store-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* projects.html의 category-menu 스타일을 가로 슬라이드로 변환 */
.smart-store-grid-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.smart-store-grid-container::-webkit-scrollbar {
  height: 8px;
}

.smart-store-grid-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.smart-store-grid-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.smart-store-grid-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

.smart-store-grid.category-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 24px !important;
  width: max-content;
  min-width: 100%;
}

.smart-store-grid.category-menu li {
  margin-bottom: 0 !important;
  list-style: none !important;
  flex-shrink: 0;
  width: 320px;
}

/* category-menu-item을 카드 형태로 확장 */
.smart-store-card.category-menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 32px 28px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  font-family: 'Pretendard', sans-serif;
  min-height: 320px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.smart-store-card.category-menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.smart-store-card.category-menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.smart-store-card.category-menu-item:hover::before {
  opacity: 1;
}


/* 카드 콘텐츠 래퍼 */
.card-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

/* 카드 메인 제목 */
.card-title-main {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
}

/* 카드 설명 */
.card-description {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

/* 자세히 보기 버튼 */
.card-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.card-link-button:hover {
  opacity: 0.9;
}

.card-link-button i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.smart-store-card:hover .card-link-button {
  gap: 8px;
}

.smart-store-card:hover .card-link-button i {
  transform: translateX(4px);
}

/* 반응형 디자인 */
@media (max-width: 992px) {
  .smart-store-grid.category-menu li {
    width: 280px;
  }

  .smart-store-grid.category-menu {
    gap: 20px;
  }

  .smart-store-card.category-menu-item {
    min-height: 260px;
    padding: 28px 24px;
  }

  .smart-store-card .category-name.card-title {
    font-size: 22px;
  }

  .card-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .smart-store {
    padding: 60px 0;
  }

  .smart-store-title h2 {
    font-size: 28px;
  }

  .smart-store-main-title {
    font-size: 32px;
  }

  .title-with-buttons {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .title-with-buttons h2 {
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slider-nav-buttons {
    flex-shrink: 0;
  }

  .slider-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

  .smart-store-grid.category-menu li {
    width: 280px;
  }

  .smart-store-grid.category-menu {
    gap: 20px;
  }

  .smart-store-card.category-menu-item {
    min-height: 240px;
    padding: 24px 20px;
  }

  .smart-store-card .category-name.card-title {
    font-size: 20px;
  }

  .card-description {
    font-size: 14px;
  }

  .card-link {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .smart-store-title h2 {
    font-size: 24px;
  }

  .smart-store-main-title {
    font-size: 28px;
  }

  .smart-store-main-title::after {
    width: 50px;
    height: 3px;
  }

  .title-with-buttons {
    gap: 8px;
  }

  .title-with-buttons h2 {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slider-nav-buttons {
    gap: 8px;
  }

  .slider-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

  .coming-soon-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .smart-store-grid.category-menu li {
    width: 260px;
  }

  .smart-store-grid.category-menu {
    gap: 16px;
  }

  .smart-store-card.category-menu-item {
    min-height: 220px;
    padding: 20px 18px;
  }


  .smart-store-card .category-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .smart-store-card .category-name.card-title {
    font-size: 18px;
  }

  .card-description {
    font-size: 13px;
  }

  .card-link {
    font-size: 13px;
  }

  .smart-store-card .category-count {
    font-size: 11px;
    padding: 3px 10px;
  }
}
