/* 상품 상세 페이지 전용 스타일 */
@font-face {
	font-family: 'NanumGothic';
	src: url('/fonts/NanumGothic.woff2') format('woff2'),
		url('/fonts/NanumGothic.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}


	@font-face {
    font-family: 'BMJUA';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RecipeKorea';
    src: url('/fonts/Recipekorea.otf');
    font-weight: normal;
    font-style: normal;
}

.title_font{
	font-family: 'RecipeKorea','BMJUA', sans-serif;
	
}

body{
		font-family: 'BMJUA','NanumGothic', sans-serif;
    background: url("/img/background/shop_create_back.jpg")no-repeat top/cover;
}
.fw-bold{
	font-size: 1.3rem;
}

.product-detail-container {
	width: 80%;
	max-width: 1200px;
	margin: 10px auto;
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

#subject {
	font-size: 2.4rem;
    font-weight: bold;
}

/* 스크롤 탑 버튼 스타일 (오른쪽 하단 고정) */
.scroll-to-top {
    position: fixed;
    left: 25px;   
    bottom: 20px;
    z-index: 9999;
}

#scrollToTopBtn {
    display: none;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#scrollToTopBtn i {
    font-size: 1.5rem;
}


.product-detail-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background: var(--green);
}

.product-image {
	max-width: 65vh;
	height: auto;
	border-radius: 8px;
	margin-bottom: 20px;
}

.image {
	max-width:65vh;
	width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 8px;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.description-image {
	width: 80%;
	height: auto;
	border-radius: 10px;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	text-align: center;
}

#info p{
font-weight: 500;
}

#ratingInput{
	height: 38px;
}
/* 숫자 입력창의 화살표 제거 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* 버튼 스타일링 */
.quantity-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.recommend {
			color: #6c757d;
			font-weight: bold;
			text-decoration: none;
		}
/* 댓글 스크롤 타겟 */
.comment-scroll-target {
	scroll-margin-top: 100px;
}
.page-item.active .page-link{
	border-color: var(--green);
	background-color: var(--green);
}

.page-link{
	color: var(--green);
}

.page-link:hover{
	color: var(--green) !important;
}
    /* 모바일 페이지네이션 스타일 - 대형 버튼 */
    .mobile-pagination {
        padding: 20px 0;
    }
    
    .mobile-pagination .page-item {
        margin: 0 5px;
        display: flex;
        align-items: center;
    }
    
    .mobile-pagination .page-link {
        min-width: 60px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        font-size: 1.3rem;
        padding: 0;
        border-radius: 50% !important;
        border: none;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .mobile-pagination .page-link i {
        font-size: 1.5rem;
    }
    
    .mobile-pagination .page-item.active .page-link {
        background-color: #28a745;
        color: white;
        font-weight: bold;
        transform: scale(1.1);
    }
    
    .mobile-pagination .page-item.disabled .page-link {
        opacity: 0.5;
        transform: scale(0.9);
    }
    
    .mobile-pagination .page-link:active {
        transform: scale(0.95);
    }
    
    /* 태블릿 사이즈에서 조정 */
    @media (max-width: 992px) {
        .mobile-pagination .page-link {
            min-width: 55px;
            height: 55px;
            line-height: 55px;
            font-size: 1.2rem;
        }
    }
    
    /* 모바일 사이즈에서 조정 */
    @media (max-width: 768px) {
        .mobile-pagination .page-link {
            min-width: 50px;
            height: 50px;
            line-height: 50px;
            font-size: 1.1rem;
        }
        
        .mobile-pagination .page-link i {
            font-size: 1.3rem;
        }
    }

/* 반응형 디자인 */
@media ( max-width : 800px) {
	.product-detail-container {
		width: 95%;
		padding: 15px;
	}
	.product-image {
		max-width: 100%;
	}
}

/* 기본 Tagify 스타일 (기존 유지) */
.tagify {
    --tags-border-color: #e0e0e0;
    --tags-hover-border-color: var(--green);
    --tags-focus-border-color: var(--green);
    --tag-bg: var(--green);
    --tag-hover: var(--green-dark);
    --tag-text-color: white;
    --tag-remove-btn-color: white;
    --tag-border-radius: 16px;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 100%;
}

.tagify__tag {
    border-radius: 16px !important;
    padding: 5px 10px 5px 35px !important;
}

.tagify__tag__removeBtn {
    opacity: 0.8 !important;
    margin-left: 5px !important;
}

.tagify__tag__removeBtn:hover {
    opacity: 1 !important;
    background: rgba(255,255,255,0.3) !important;
}

/* Readonly 전용 스타일 추가 */
.tagify[readonly] {
    --tag-bg: #f0f0f0;
    --tag-text-color: #555;
    --tags-border-color: transparent;
    background-color: transparent;
    padding: 0.5rem 0;
}

.tagify[readonly] .tagify__tag {
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #555;
    border: 1px solid #ddd;
    padding: 4px 12px !important;
}



/* 재료 박스 스타일 */
.ingredients-box {
    background-color: #f9f9f9;
    border-color: #e0e0e0 !important;
    text-align: center; /* 부모 요소에 가운데 정렬 */
}

/* 새로운 태그 컨테이너 스타일 */
.tagify-container {
    display: inline-block; /* 인라인 블록으로 변경 */
    max-width: 100%;
}

/* Tagify 스타일 재정의 */
.ingredients-box .tagify {
    display: inline-flex; /* 인라인 플렉스로 변경 */
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.8rem 0;
    background-color: transparent;
    border: none;
    text-align: center;
    margin: 0 auto; /* 자동 마진으로 가운데 정렬 */
}

/* 태그 아이템 스타일 */
.ingredients-box .tagify__tag {
    display: inline-flex; /* 인라인 플렉스로 변경 */
    margin: 2px;
    position: relative;
}

/* 읽기 전용 태그 스타일 */
.ingredients-box .tagify[readonly] .tagify__tag {
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #555;
    border: 1px solid #ddd;
    padding: 6px 15px !important;
    font-size: 0.95rem;
}

.ingredients-box .tagify[readonly] .tagify__tag > div::before {
	display:flex;
    content: "재료";
    font-size:0.75rem;
    margin-right: 5px;
    color: var(--green);
    font-weight: bold;
}



.tagify[readonly] .tagify__tag > div::before {
    content: "#";
    margin-right: 4px;
    color: var(--green);
    font-weight: bold;
}

.tagify[readonly] .tagify__tag__removeBtn {
    display: none; /* 읽기 전용 시 삭제 버튼 숨김 */
}

/* 호버 효과 */
.tagify[readonly] .tagify__tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* 비활성화 상태 시 스타일 */
.tagify[disabled] {
    opacity: 0.7;
    background-color: #f9f9f9;
}

.tagify[disabled] .tagify__tag {
    background-color: #e0e0e0;
    color: #888;
}