/* BASIC css start */
/* 챗봇 아이콘 위치 및 디자인 */
#ai-chatbot-icon-wrapper {
    position: fixed;
    right: 60px;
    bottom: 210px;
    z-index: 2147483647;
    cursor: pointer;
}
#ai-chatbot-icon-wrapper img {
    width: 42px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 챗봇 채팅창 기본 레이아웃 */
#ai-chatbot-window {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2147483647;
    flex-direction: column;
    overflow: hidden;
    font-family: sans-serif;
}

/* 상단 헤더 영역 */
.chat-header {
    background: #1B2C44;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#ai-chatbot-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* 대화 내용 영역 */
#ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 최초 봇 메시지 */
.bot-message {
    background: #F0F4F8;
    padding: 10px;
    border-radius: 10px;
    align-self: flex-start;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* 하단 입력창 */
.chat-input-area {
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}
#ai-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
}
#ai-chatbot-send-btn {
    background: #1B2C44;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* AI 추천 요약 박스 */
.ai-reco-summary {
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 12px;
    color: #222;
    font-size: 14px;
    line-height: 1.7;
    word-break: keep-all;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 가로 슬라이더 */
.ai-reco-slider {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.ai-reco-slider::-webkit-scrollbar {
    display: none;
}

/* 상품 카드 */
.ai-reco-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 22px;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* 카드 상단 설명 */
.ai-reco-card__desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    min-height: 36px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* 이미지 영역 */
.ai-reco-card__image-wrap {
    background: #fafafa;
    border-radius: 14px;
    text-align: center;
    padding: 12px;
    margin-bottom: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-reco-card__image {
    max-width: 100%;
    max-height: 176px;
    object-fit: contain;
}

/* 상품명 */
.ai-reco-card__name {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: keep-all;
}

/* 가격 */
.ai-reco-card__price {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
}

/* 재고 상태 */
.ai-reco-card__status {
    font-size: 12px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
}
.ai-reco-card__status.is-soldout {
    color: #d32f2f;
}

/* 버튼 */
.ai-reco-card__btn {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    background: #1B2C44;
    color: #fff !important;
    text-decoration: none;
    padding: 13px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}
.ai-reco-card__btn.is-soldout {
    background: #6f7a86;
}

.ai-reco-card__noimage {
    font-size: 13px;
    color: #888;
}
/* BASIC css end */

