body {
	background-color: #f8f9fa;
	background: url("/img/background/shopping-back.jpg")no-repeat top/cover;
}

.shop-container {
	width: 100%;
	max-width: 1300px;
	padding: 23px;
	background-color: #f8f9fa;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	position: relative; /* 추가: 부모 요소에 relative 포지셔닝 */
	overflow: hidden; /* 추가: 자식 요소가 넘치지 않도록 */
	min-height: 55vh;
}
.shop-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--green);
}


.search-box{
	border-radius: 20px!important;
}

/* 검색창 기본 스타일 */
.search-box input {
	width: 100px;
}

.search-box button {
	white-space: nowrap;
}

.search-form-control {
	width: 40%;
	text-align: center;
}
  .add-product .btn-icon {
  display: none;
  }


.add-product{
	  border-radius: 20px !important;
	    transition: all 0.2s ease-in-out;
}
.add-product:hover{
  transform: scale(1.05);
	}	
	
	.add-cartlist{
	position:relative;
		bottom: 0px;
	}

/* 📌 모바일 반응형 스타일 */
@media ( max-width : 768px) {
	.add-product-btn {
		width: 40px;
		height: 40px;
		font-size: 14px;
		padding: 5px;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 50%;
	}
	#search_kw {
		width: 50% !important;
	}
	.d-flex.flex-grow-1 {
		flex-direction: column;
	}
	#search-btn {
		margin-left: 0;
		margin-top: 5px;
		width: 100%;
	}
}
@media ( max-width : 600px) {
	.nav-bar{
		justify-content: space-around !important;
	}
	#search_kw {
		width: 75% !important;
		float: right;
	}
	#btn_refresh{
		display: none;
	}
	
}

@media ( max-width : 455px) {
	.nav-bar{
		justify-content: space-around !important;
	}
	.add-product .btn-text {
    display: none;
  }
  .add-product .btn-icon {
    display: inline-block;
  }
    /* 아이콘 버튼 크기 조정 (선택 사항) */
  .add-product {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;  /* 원형 버튼 */
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
	#search_kw {
		width: 65% !important;
		float: right;
	}
	#btn_refresh{
		display: none;
	}
	
}


.product-card {
	border: 2px solid #ccc;
	border-radius: 10px;
	padding: 15px;
	background-color: white;
	text-align: center;
}

.product-image {
	width: 100%;
	height: 200px;
	background-color: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: bold;
}
.product-rate{
	position : absolute;
	top:27px;
	left:25px;
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}
.product-views{
	position: absolute;
	top: 8px;
	right:23px;
}


.product-info {
	margin-top: 10px;
}

.price {
	float: right;
	color: #ff5733;
	font-weight: bold;
}

.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;
}

.page-item.active .page-link:hover{
	color: white !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;
        }
    }

.masonry-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	/* 250px 이상의 크기로 아이템을 자동 배치 */
	gap: 1rem; /* 카드 사이에 간격 추가 */
}

.masonry-item {
	display: flex;
}

.card {
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	position: relative; /* 필요 시 포지셔닝 기준 */
	border-color: rgba(0,0,0,0.3) !important;
	width: 100%;
}
.img-container{
	position: relative;
	cursor: pointer;
}
.card-rate{
	position: absolute;
	top: 10px;
	left: 10px;
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.card-views{
	position: absolute;
	top: 10px;
	right: 10px;
}

.card-category{
	position: absolute;
	bottom: 10px;
	left: 10px;
	opacity: 1;
	transition: opacity 0.3s ease; /* opacity에 애니메이션 추가 */
}
.badge{
    color: var(--green);
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.95rem;
    background: var(--lightgreen);
    width: fit-content;
    border-radius: 50px;
}


.card-cookingtime{
	position: absolute;
	bottom: 10px;
	right: 10px;
	opacity: 1;
	transition: opacity 0.3s ease; /* opacity에 애니메이션 추가 */
	text-shadow: -1px 0px black, 0px 1px black, 1px 0px black, 0px -1px black;
}

.card:hover .card-cookingtime{
	opacity: 0;
}




.card-ingredients{
	position: absolute;
	bottom: 10px;
	left: 10px;
	opacity: 0;
	transition: opacity 0.3s ease; /* opacity에 애니메이션 추가 */
}

.card:hover .card-ingredients{
	opacity: 1;
}
.card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1 비율 유지 */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-body {
	padding: 15px;
	position: relative;
	
}

.card-title {
	font-size: 1.2rem;
	font-weight: bold;
}

.card-text {
	color: #555;
	font-size: 0.9rem;
}

.card:hover .card-img-top {
	transform: scale(1.02);
}

.card:hover{
	transform: scale(1.02);
}

.tagify {
	--tags-border-color: none;
	--tags-hover-border-color: none;
	--tags-focus-border-color: none;
	--tag-bg: var(--lightgreen);
	--tag-hover: var(--lightgreen);
	--tag-text-color: var(--green);
	min-height: 75.51px;
}


