/* PC 버전 - 원래대로 유지 */
@media (min-width: 769px) {
  /* PC에서는 상세보기 버튼 완전히 숨김 */
  .mobile-detail-btn {
    display: none !important;
  }
  
  /* PC에서는 가이드 메시지 숨김 */
  .mobile-guide-message {
    display: none !important;
  }
  
  /* PC에서는 active에 의한 ::before, ::after 숨김 */
  .product__list--grid .grid__title ul li.active::before,
  .product__list--grid .grid__title ul li.active::after {
    display: none !important;
  }
}

/* 모바일 버전만 수정 */
@media (max-width: 768px) {
  /* 모바일 항목 링크 스타일 */
  .mobile-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* 상세보기 텍스트 스타일 */
  .mobile-detail-text {
    color: #4660ea;
    font-weight: 600;
    font-size: 14px;
    animation: fadeInOut 2s ease-in-out infinite;
  }
  
  @keyframes fadeInOut {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
  
  /* 활성화된 항목 스타일 */
  .product__list--grid .grid__title ul li.active .mobile-detail-text {
    color: #fff;
  }
  
  /* 모바일 가이드 메시지 */
  .mobile-guide-message {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #e6efff;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #4660ea;
    font-weight: 500;
    border: 1px solid #bed5ff;
  }
  
  /* 첫 클릭 후 안내 툴팁 */
  .product__list--grid .grid__title ul li.active::after {
    content: '한 번 더 클릭하여 이동';
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    animation: tooltipBounce 1s ease-in-out infinite;
  }
  
  @keyframes tooltipBounce {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(-3px);
    }
  }
  
  /* 화살표 모양 추가 */
  .product__list--grid .grid__title ul li.active::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1f2937;
    z-index: 101;
  }
}