/* 상품 캐러셀 스타일 */
.product-carousel {
    width: 100%;
}

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

.carousel-inner {
    width: 100%;
    display: flex;
    transition: transform 0.3s ease;
    gap: 1rem;
    padding: 1rem 0;
}

/* 상품 카드 스타일 */
.product-card {
    flex: 0 0 calc(33.333% - 1rem) !important;
    min-width: 220px;
    width: 100%;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 8px 0 rgba(0,0,0,0.25);
}

.product-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    color: #aaa;
    font-size: 14px;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-brand {
    font-size: 0.75rem;
    color: #666;
}

.product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
}

.product-price .total-price {
    font-size: 0.95rem;
    color: #b45309;
}

.product-price .unit-price {
    font-size: 0.8rem;
    color: #d97706;
}

.product-rating {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
}

.product-tags {
    min-height: 1.5rem;
}

.product-tags span {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.stars {
    display: flex;
    align-items: center;
}

.stars .material-icons {
    font-size: 1rem;
}

.rating-value {
    margin-left: 0.25rem;
    font-weight: 600;
}

.review-count {
    color: #666;
    margin-left: 0.25rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-control:hover {
    background-color: #f9f9f9;
}

.carousel-control.prev {
    left: 0.5rem;
}

.carousel-control.next {
    right: 0.5rem;
}

/* 모달 애니메이션 스타일 */
.modal-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content.show {
    transform: scale(1);
    opacity: 1;
}

/* 상품 상세 모달 이미지 스타일 */
.detail-image-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #FFFFFF;
    border-radius: 0.5rem;
}

.detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 300px;
}

/* 로딩 애니메이션 */
.loading-dots {
    display: flex;
    justify-content: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    border-radius: 50%;
    background-color: #888;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1.0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(33.333% - 1rem) !important;
    }
    
    .detail-image-container {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .product-card {
        flex: 0 0 calc(33.333% - 1rem) !important;
    }
    
    .detail-image-container {
        height: 180px;
    }
}

/* 좋아요 버튼 스타일 */
.like-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background-color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.9;
    border: none;
}

.like-button:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transform: scale(1.05);
}

.like-button .material-icons {
    font-size: 18px;
}

/* 성분 fade-out 오버레이 */
.ingredients-fade {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
    z-index: 2;
} 