/* 기존 코드 유지 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

.footer {
    background-color: #f8f9fa;
    padding: 10px 0;
    text-align: center;
}

.footer-text {
    font-size: 10px;
    color: #4e5968;
    padding-top: 10px;
}

.navbar-brand img {
    width: auto;
    height: 20px;
    padding-left: 20px; /* 로고 왼쪽에 20px 패딩 추가 */
}

.heading {
    font-weight: bold;
    color: #4e5968;
    line-height: 1.3;
    font-size: 24px;
    padding-top: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.mall-heading {
    font-weight: bold;
    color: #4e5968;
    line-height: 1.3;
    font-size: 36px;
    padding-top: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.subheading {
    font-weight: bold;
    color: #4e5968;
    line-height: 1.1;
    font-size: 17px;
    padding-top: 20px;
}

.lead {
    font-size: 15px;
    color: #4e5968;
    padding-top: 10px;
}

.card-heading {
    font-weight: bold;
    color: #4e5968;
    line-height: 1.3;
    font-size: 22px;
    margin-top: 30px;
}

.card-lead {
    font-size: 14px;
    color: #4e5968;
    padding-top: 10px;
}

.card-img-product {
    height: 100px;
    object-fit: contain; /* 이미지를 박스에 맞추되 비율을 유지 */
    width: 100%; /* 이미지를 박스에 맞추기 위해서 사용 */
}

.card {
    background-color: #f8f9fa;
    border: None;
    border-radius: 15px; /* 원하는 반경으로 설정 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.extra-option {
    background-color: #ffeb3b; /* 형광노랑 배경색 */
    color: black; /* 글자 색상 */
    padding: 5px 10px; /* 여백 */
    border-radius: 15px; /* 둥근 모서리 */
    display: inline-block; /* 내부 요소를 인라인 블록으로 */
    float: right; /* 우측 정렬 */
    font-size: 12px; /* 글자 크기 */
    margin-bottom: 10px; /* 제목과의 간격 */
    width: fit-content;
}

.btn-lg.custom-btn {
    font-size: 15px; /* 글씨 크기 조정 */
    border-radius: 10px;
    margin-top: 20px;
    padding: 16px 24px;
}

.auth-card-btn {
    font-size: 15px; /* 글씨 크기 조정 */
}

.font-weight-bold {
    font-weight: bold;
}

.auth-card-container {
    display: flex;
    justify-content: center;
    max-width: 500px; /* 최대 넓이 설정 */
    margin: 0 auto; /* 좌우 가운데 정렬 */
    padding: 0;
}

.auth-card {
    display: flex;
    justify-content: center;
    flex: 1;
    margin: 10px; /* 카드 사이 여백 */
    min-width: calc(50% - 20px); /* 카드 넓이 설정 */
    height: 250px; /* 카드 높이 조정 */
    text-align: center; /* 카드 내용 가운데 정렬 */
}

.auth-card-image {
    width: 50%; /* 원하는 크기에 맞게 조정 */
    height: auto; /* 비율을 유지 */
    margin-bottom: 20px; /* 버튼과 이미지 사이 간격 */
    max-width: 74px;
}

.align-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Flexbox를 사용하여 카드 높이 맞추기 */
.row {
    display: flex;
    flex-wrap: wrap;
}

.card-body {
    flex-grow: 1; /* 카드 몸체가 가능한 공간을 모두 차지하도록 */
    padding: 12px 48px; /* 좌우 여백 설정 */
}

.test {
    text-align: start;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.card-price {
    font-size: 17px; /* Updated */
}

.margin-top {
    margin-top: 10px;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-group {
    width: 100%; /* 전체 너비 사용 */
    margin-bottom: 15px;
}

.auth-button {
    width: 100%; /* 버튼을 전체 너비로 설정 */
    margin-bottom: 10px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-button img {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.form-control {
    width: 100%; /* 입력 필드를 전체 너비로 설정 */
    font-size: 0.9em;
    padding: 8px;
    margin-bottom: 10px;
}

.terms {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

.hidden {
    display: none;
}

/* 상품 리스트를 Flexbox로 가운데 정렬 */
.row-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.row-list .card {
    margin: 10px;
}

.padding-top {
    padding-top: 30px;
}

.banner-container {
    width: 100%;
    max-width: 800px; /* 원하는 최대 너비로 설정 */
    margin: 0 auto;    /* 좌우 중앙 정렬 */
    padding: 0 15px;   /* 필요에 따라 좌우 여백 추가 */
}
  
.main-banner {
width: 100%;       /* 컨테이너에 맞춰 이미지 크기 조절 */
display: block;    /* 이미지 하단 공백 제거 */
}

/* 모바일, 태블릿, PC에서 컬럼 수 조정 */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}