/* Fonts */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');


.main-carousel-height {
    height: 200px;
}


@media (min-width: 990px) {
    .main-carousel-height {
        height: 500px;
    }
}

@keyframes goldPulse {
    0% {
        background-color: #b8860b;
    }

    /* 짙은 금색 */
    50% {
        /* background-color: #f6d365; */
        background-color: #000;
    }

    /* 밝은 금색 */
    100% {
        background-color: #b8860b;
    }
}

.gold-pulse-btn {
    animation: goldPulse 5s infinite ease-in-out;
}


/* 기본 폰트 및 리셋 */
body {
    font-family: 'Pretendard', -apple-system, sans-serif;
    color: #333;
}

/* 헤더 커스텀 */
.nav-link:hover {
    color: #007bff !important;
}


input::placeholder {
    color: #b9b8b8;
    /* 글자색 변경 */
    font-size: 14px;
    /* 글자 크기 */
    font-weight: 400;
    /* 글자 두께 */
    opacity: 1;
    /* Firefox 등 일부 브라우저에서 기본 적용되는 투명도 방지 */
}


/* Responsive Search Bar styling */
.search-bar {
    flex-grow: 1;
    max-width: 550px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-bar form {
    border: 1px solid #dee2e6 !important;
    background-color: #f8f9fa !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.search-bar form:focus-within {
    border-color: #0d6efd !important;
    /* bs-primary */
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08) !important;
}

.search-bar .form-control {
    background-color: transparent !important;
    border: none !important;
    padding-left: 16px;
    font-size: 0.9rem;
    height: 38px;
    color: #495057;
}

.search-bar .form-control:focus {
    box-shadow: none !important;
}

.search-bar .btn-primary {
    border-radius: 50px !important;
    height: 38px;
    width: 38px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-bar .btn-primary:hover {
    transform: scale(1.05);
}

/* 상품 카드 스타일 */
.product-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    border-radius: 12px;
}

/* 뱃지 및 태그 */
.badge {
    font-weight: 500;
}

/* 버튼 커스텀 */
.btn-white {
    background: white;
    border: 0.5px solid #000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-size {
    font-size: 1.3em;
}

/* 메인 배너 높이 조정 
.main-banner {
    min-height: 400px;
}
*/
/* 전체메뉴 2단 레이어 스타일 */
#totalMenuCollapse,
#totalOfficeCollapse {
    position: absolute !important;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1060 !important;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#totalMenuCollapse .nav-pills .nav-link {
    color: #333;
    transition: all 0.2s;
    border-bottom: 1px solid #eee !important;
}

#totalMenuCollapse .nav-pills .nav-link.active {
    background-color: #fff;
    color: var(--bs-primary);
    border-right: 3px solid var(--bs-primary) !important;
}

#totalMenuCollapse .nav-pills .nav-link:hover:not(.active) {
    background-color: #eee;
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
    text-decoration: underline !important;
}

/* 메뉴 스와이퍼 스타일 */
.menuSwiper {
    width: 100%;
    overflow: hidden;
}

.menuSwiper .nav-link {
    white-space: nowrap;
    letter-spacing: -1px;
}



.mobile-br {
    display: none;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .mobile-br {
        display: inline;
    }



    .header-icons span {
        display: none;
        /* 모바일에서 텍스트 숨김 */
    }

}

@media (max-width: 999px) {

    #shopMenu,
    #officeMenu,
    .shopMenu,
    .officeMenu {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .search-bar {
        order: 3;
        margin: 12px 0 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

}

/* 모바일 네비게이션 및 2단 메뉴 커스텀 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

.center-dropup .dropdown-menu {
    width: 94vw;
    max-width: 500px;
    position: fixed !important;
    bottom: 75px !important;
    left: 3vw !important;
    transform: none !important;
    border-radius: 20px 20px 10px 10px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.center-dropup1 .dropdown-menu {
    bottom: 75px !important;
    left: 3vw !important;
    transform: none !important;
    border-radius: 20px 20px 10px 10px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.center-dropup2 .dropdown-menu {
    bottom: 75px !important;
    left: -10vw !important;
    transform: none !important;
    border-radius: 20px 20px 10px 10px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}



.mobile-menu-container {
    display: flex !important;
    flex-direction: row !important;
    height: 60vh;
    max-height: 400px;
    width: 100%;
}

.mobile-1st-tier {
    width: 40% !important;
    flex: 0 0 40%;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    overflow-y: auto;
}

.mobile-2nd-tier {
    width: 60% !important;
    flex: 0 0 60%;
    background: white;
    overflow-y: auto;
}


.mobile-1st-tier .nav-link {
    padding: 18px 15px;
    border-radius: 0;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.mobile-1st-tier .nav-link.active {
    background: white;
    color: #0d6efd;
    border-right: 3px solid #0d6efd;
}

.mobile-2nd-tier h6 {
    color: #333;
    font-size: 0.9rem;
    margin-top: 5px;
}

.mobile-2nd-tier .list-unstyled li a {
    color: #666;
    font-size: 0.85rem;
    padding: 5px 0;
    display: block;
}



/* 로고  */
.text-logo {
    /*background-image: linear-gradient(to right, red, blue, green, yellow, red);*/

    background-image: url("../images/logo/logo_bg.png");
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-size: 400% 100%;
    animation: changeBackground 3.5s linear infinite;
}

@keyframes changeBackground {

    0% {
        background-position: 0;
    }

    100% {
        background-position: 100%;
    }

}

.p-1815 {
    padding: 18px 15px;
}

.pl-3 {
    padding-left: 3rem !important;
}

/* 헤더 2단 메뉴 - 폰트 크기 조정 */
#totalMenuCollapse .mobile-1st-tier .nav-link {
    font-size: 14px !important;
    padding: 14px 15px !important;
}

#totalMenuCollapse .mobile-2nd-tier .fw-semibold {
    font-size: 12px !important;
}

#totalMenuCollapse .mobile-2nd-tier .text-dark {
    font-size: 13px !important;
}

/* 메인 배너 캐러셀 컨트롤 */
.main-banner .carousel-control-prev,
.main-banner .carousel-control-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    opacity: 0;
    transition: all 0.3s ease;
}

.main-banner:hover .carousel-control-prev,
.main-banner:hover .carousel-control-next {
    opacity: 1;
}

.main-banner .carousel-control-prev:hover,
.main-banner .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #fff;
}

.main-banner .carousel-control-prev-icon,
.main-banner .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}



/* 로그인 페이지 */
.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.login-subtitle {
    color: #888;
    margin-bottom: 40px;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--bs-primary);
}


.form-control:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    background-color: #fff;
}

.btn-login {
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #bbb;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.social-login-divider:not(:empty)::before {
    margin-right: .75em;
}

.social-login-divider:not(:empty)::after {
    margin-left: .75em;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid #eee;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.social-btn:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
    transform: translateY(-2px);
}

.login-footer-links {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

.login-footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.login-footer-links a:hover {
    color: #0d6efd;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

@media (max-width: 576px) {
    .login-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
}

/* 상품 목록 */
.category-pills .nav-link {
    color: #333;
    transition: all 0.2s ease-in-out;
}

.category-pills .nav-link:hover {
    background-color: #e9ecef;
}

.category-pills .nav-link.active {
    background-color: #212529;
    color: #fff;
}

/* 상세화면 */

.product-img-swiper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.product-info-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #666;
    margin-right: 5px;
}

.price-discount {
    color: #ff4d4f;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 10px;
}

.price-current {
    font-weight: 800;
    font-size: 1.8rem;
}

.price-original {
    text-decoration: line-through;
    color: #bbb;
    font-size: 1.1rem;
    margin-left: 10px;
}

.option-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    width: fit-content;
}

.qty-btn {
    border: none;
    background: none;
    padding: 8px 15px;
    font-size: 1.2rem;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    background: transparent;
}

.btn-action {
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-cart {
    background-color: #fff;
    border: 1px solid #0d6efd;
    color: #0d6efd;
}

.btn-buy {
    background-color: #0d6efd;
    border: none;
    color: #fff;
}

.btn-buy:hover {
    background-color: #0b5ed7;
}

.btn-detail {
    background-color: #0d6efd;
    border: none;
    color: #fff;
}

.btn-detail:hover {
    background-color: #0b5ed7;
}

.product-tabs .nav-link {
    color: #666;
    font-weight: 600;
    border: none;
    padding: 15px 30px;
    position: relative;
}

.product-tabs .nav-link.active {
    color: #000;
    background: none;
}

.product-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px;
    z-index: 1040;
}

@media (max-width: 991px) {
    .product-info-col {
        margin-top: 30px;
    }
}


/* 장바구니 */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.product-img-small {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    width: fit-content;
}

.qty-btn {
    border: none;
    background: none;
    padding: 5px 12px;
    font-size: 1rem;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    background: transparent;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 150px;
}

.btn-order {
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

@media (max-width: 991px) {
    .summary-card {
        position: static;
        margin-top: 40px;
    }
}

.opacity-90 {
    opacity: .9 !important;
}