/* PetKey Theme - Custom Styles */
/* Tailwind CSS handles most styling via CDN */

/* 추가 커스텀 스타일 */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 그누보드 기본 스타일 오버라이드 */
.new_win { display: none !important; }
.sound_only { display: none !important; }

/* 상품 카드 호버는 fdm/components.css 에서 자연스러운 강조(lift+그림자+줌)로 정의 */

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* iOS Safe Area */
.pb-safe {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* PetKey item option controls */
#sit_sel_option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#sit_opt_added {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#sit_sel_option .petkey-option-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border: 1px solid rgba(139, 115, 85, 0.12);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(254, 251, 246, 0.98), rgba(248, 243, 236, 0.92));
}

#sit_sel_option .petkey-option-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    flex-wrap: wrap;
}

#sit_sel_option .petkey-option-name {
    flex: 1 1 220px;
    min-width: 0;
}

#sit_sel_option .sit_opt_subj {
    display: block;
    color: #1d0f0c;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

#sit_sel_option .petkey-option-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: auto;
}

#sit_sel_option .petkey-option-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 115, 85, 0.18);
    border-radius: 0.9rem;
    background: #fff;
    color: #6f5843;
    box-shadow: 0 8px 18px rgba(35, 18, 15, 0.06);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

#sit_sel_option .petkey-option-btn:hover {
    border-color: rgba(255, 155, 133, 0.55);
    color: #ff8d74;
    background: #fffaf7;
    transform: translateY(-1px);
}

#sit_sel_option .petkey-option-btn i {
    font-size: 0.9rem;
}

#sit_sel_option .petkey-option-remove {
    color: #a17f73;
}

#sit_sel_option .petkey-option-remove:hover {
    color: #e06755;
    border-color: rgba(224, 103, 85, 0.28);
    background: #fff5f2;
}

#sit_sel_option .petkey-option-qty {
    width: 3.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(139, 115, 85, 0.18);
    border-radius: 0.9rem;
    background: #fff;
    color: #1d0f0c;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 2.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#sit_sel_option .petkey-option-qty:focus {
    outline: none;
    border-color: rgba(255, 155, 133, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 155, 133, 0.12);
}

#sit_sel_option .petkey-option-price {
    align-self: flex-end;
    color: #ff8d74;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
}

#sit_sel_option .petkey-option-price:empty {
    display: none;
}

@media (max-width: 767px) {
    #sit_sel_option .petkey-option-main {
        flex-direction: column;
        align-items: stretch;
    }

    #sit_sel_option .petkey-option-controls {
        width: 100%;
        margin-left: 0;
    }

    #sit_sel_option .petkey-option-price {
        align-self: center;
    }
}
