/* src/main/resources/static/maincss/assets/brandPage/brandPage.css */
/* 브랜드 헤더의 이름 + 로고 래퍼 */
.brand-name-wrapper {
	display: flex;
	align-items: center;
	gap: 12px; /* 로고와 이름 사이 간격 */
}

/* 브랜드 페이지 로고 (이미지) */
.brand-page-logo {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0; /* 크기가 줄어들지 않도록 */
	background-color: #f0f0f0; /* 이미지가 없을 경우를 대비한 배경색 */
}

.brand-page-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 브랜드 페이지 로고 (이니셜) */
.brand-page-logo-initial {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #333; /* 검정색 배경 */
	color: white; /* 흰색 글자 */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	flex-shrink: 0;
}

/* 기존 브랜드 헤더 스타일 */
.brand-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 35px 15px 0px 15px;
	margin-bottom: 2.5rem;
}

.brand-page-header .brand-name {
	font-size: 2.8rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.05em;
}

/* 전체 브랜드 페이지 컨테이너 */
.brand-page-container {
	max-width: 1200px;
	justify-self: center;
	margin-bottom: 3rem;
	width: 100%;
}

.brand-page-header .brand-name {
	font-size: 2.8rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.05em;
}

.brand-page-header .brand-actions .btn {
	font-size: 1.4rem;
	font-weight: 500;
	padding: 0.8rem 1.5rem;
	border-radius: 4px;
	border: 1px solid #ccc;
	color: #333;
	background-color: #fff;
	transition: all 0.3s;
}

.brand-page-header .brand-actions .btn:hover {
	background-color: #f5f5f5;
	border-color: #aaa;
}

/* 브랜드 스냅 */
.brand-snap-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 3열 그리드 */
	gap: 15px; /* 아이템 사이 간격 */
	margin-bottom: 3rem;
	padding: 0 15px;
}

.brand-snap-item {
	text-align: center;
}

.brand-snap-item a {
	display: block;
	width: 100%;
	/* 이미지 비율을 1:1.25 (세로로 약간 길게)로 유지 */
	padding-top: 125%;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background-color: #f7f7f7;
	margin-bottom: 1rem;
}

.brand-snap-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* 이미지가 비율을 유지하며 꽉 차도록 */
	transition: transform 0.4s ease;
}

.brand-snap-item a:hover img {
	transform: scale(1.05); /* 호버 시 약간 확대 */
}

.brand-snap-item .snap-title {
	display: block;
	font-size: 1.4rem;
	color: #555;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis; /* 제목이 길면 ...으로 표시 */
}

/* 브랜드 정보 모달 */
#brandInfoModal .modal-content {
	border-radius: 8px;
	border: none;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#brandInfoModal .modal-header {
	border-bottom: none;
	padding: 1rem 1.5rem;
}

#brandInfoModal .modal-body {
	padding: 2rem 3rem 4rem 3rem;
}

#brandInfoModal .brand-modal-logo {
	max-width: 150px;
	height: auto;
	margin-bottom: 2rem;
}

#brandInfoModal .brand-modal-title {
	font-size: 2.4rem;
	font-weight: 700;
	margin-bottom: 2.5rem;
	text-align: center;
}

#brandInfoModal .brand-modal-description {
	font-size: 1.3rem;
	font-weight: 400;
	color: #555;
	line-height: 1.7;
	text-align: center;
}

/* 반응형: 모바일 화면에서 스냅 2열로 변경 */
@media ( max-width : 767px) {
	.brand-snap-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	.brand-page-header .brand-name {
		font-size: 2.2rem;
	}
}



#brandInfoModal .brand-info-header {
    display: flex;
    align-items: center; /* 로고와 이름 수직 중앙 정렬 */
    justify-content: center; /* 전체 요소를 수평 중앙 정렬 */
    gap: 12px; /* 로고와 이름 사이 간격 */
    margin-bottom: 2.5rem; /* 브랜드 이름 아래 여백 */
}

/* 기존 .brand-modal-title의 마진 속성 수정 */
#brandInfoModal .brand-modal-title {
	font-size: 2.4rem;
	font-weight: 700;
	margin: 0; /* 부모 flexbox 컨테이너의 gap 속성을 사용하도록 마진 제거 */
	text-align: center;
}

#brandInfoModal .brand-modal-description {
	font-size: 1.3rem;
	font-weight: 400;
	color: #555;
	line-height: 1.7;
	text-align: center;
}