/* 헤더 영문 폰트 */
    a:where(:not(.wp-element-button)) {
    font-family: var(--wp--preset--font-family--montserrat);
}

/* 헤더 배경색 재설정 */
.block-sticky-holder.is-block-sticky > .wp-block-group.sticky-bg-base {
    background-color: #ffffff !important;
}

/* PC 헤더 공통 높이 강제설정 */
.height-60 {
    height: 60px !important;
}

/* PC 헤더 로고 이미지 미들 정렬 */
.wp-block-image>a, .wp-block-image>figure>a {
display: block !important; 
}

/* 모바일 헤더 메뉴 오버레이 */
.hellopanda-toggle-block-overlay.m-menu {
    z-index: 99 !important;
}

/* 모바일 로고 이미지 축소 */
.wp-block-site-logo img {
    height: 50px !important; 
    width: auto;
    max-width: fit-content;
}

/* 모바일 헤더 컨테이너를 플렉스 박스로 강제 설정 및 정렬 */
.header-mobile .wp-block-group.is-layout-flex {
    display: flex !important;
    align-items: center !important; 
    justify-content: space-between !important; 
    height: 100% !important;
}

.header-mobile .wp-block-image {
    margin: 0 !important; 
    display: flex !important;
    align-items: center !important;
}

.header-mobile .wp-block-image a {
    display: flex !important;
    align-items: center !important;
}

.header-mobile .wp-block-image img {
    max-height: 50px !important;     
    width: auto !important;         
    display: block !important;
    object-fit: contain !important; 
}

/* 검색바 스타일 커스텀 */
.header-search-input .wp-block-search__inside-wrapper {
    border-width: 0 0 2px; background-color: transparent !important;
}
.searchbar-rounded .wp-block-search__inside-wrapper {
    border-width: 1px;
    border-color: #A4A6A9;
    border-radius: 50px;
}
.searchbar-rounded .wp-block-search__inside-wrapper .wp-block-search__input {
    padding: 8px 16px;
    font-size: 1rem !important;
}
.searchbar-rounded .wp-block-search__button svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #A4A6A9;
}

/* 모바일 라운드 검색바 가로 스크롤 */
@media (max-width: 991px) {
    .custom-rounded-tab {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; 
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-start !important; 
        padding-bottom: 10px; 
        gap: 10px;
    }

    .custom-rounded-tab .wp-block-buttons {
        flex-shrink: 0 !important; 
        margin-bottom: 0 !important;
    }

    .custom-rounded-tab::-webkit-scrollbar {
        display: none;
    }

    .custom-rounded-tab {
        -ms-overflow-style: none; /* IE, Edge */
        scrollbar-width: none; /* Firefox */
    }
}

@media (max-width: 768px) {
/* 모바일 헤더 높이 강제 설정 */
.header-mobile.is-layout.block-sticky {
    height: 72px !important;
}

/* 모바일 ABOUT 하단 갭 */
.gap-32 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 모바일 검색바 페이지 넘침 방지 */
.searchbar-block > .wp-block-columns {
    overflow: hidden;
}

/* 모바일 ABOUT 페이지 블럭  */
.about-block .wp-block-group {
    padding: 80px 0 !important;
}

/* 모바일 뉴스 날짜 상단 정렬  */
.corp-news-list .media-reset-width {
    padding-top: 5px !important;
}
.corp-news-list .is-not-stacked-on-mobile {
    gap: 16px;
}
/* 모바일 컬럼 정렬  */
.m-flex-column {
    flex-direction: column;
    gap: 1rem;
}
}

/* 탭 버튼 커스텀 */
.is-style-outline.outline-custom{
    border-bottom:2px solid  transparent;
}
.is-style-outline.outline-custom.tabs-active-button {
    border-color:black !important;
}
.is-style-outline.outline-custom p {
    color: var(--wp--preset--color--step-9) !important;
}
.is-style-outline.outline-custom.tabs-active-button p {
    color: black !important;
}

/* 커버 이미지 반응형 */
.wp-block-cover.custom-cover {
    min-height: 0 !important; 
    height: auto !important;
    /* 너비 대비 높이 비율 설정 (1920:800 = 2.4:1) */
    aspect-ratio: 1920 / 800 !important;
    display: flex;
    width: 100%;
}
.wp-block-cover.custom-cover > .wp-block-cover__image-background {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* nav 센터 정렬  */
.nav-center {
    position: absolute;
    top: 5px;
    left: 51.5%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 64px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* PRODUCT 상품 bg 블랜드 모드  */
.bg-blend img {
    mix-blend-mode: darken !important;
    transition: transform 0.45s ease, filter 0.4s ease;
}
.bg-blend:hover img {
    transform: scale(1.1);
}

/* BRANDS 페이지 브랜드 컬러 모바일 구간 정렬  */
@media (max-width: 500px) {
    .grid-column {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
    }
}


/* --- 문의하기 양식 Contact Form 7 통합 스타일 --- */

/* 필수 항목 안내 */
.form-notice {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.required-mark {
    color: #e74c3c;
    margin-right: 4px;
    font-weight: bold;
}

/* 테이블 공통 설정 */
.wpcf7-form table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-top: 1px solid #333;
    margin-bottom: 20px;
}

/* 상단 입력 폼 전용 스타일 (inquiry-table) */
.inquiry-table th, 
.inquiry-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #ddd;
    background: transparent !important; /* 배경색 제거 */
}

.inquiry-table th {
    width: 140px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    letter-spacing: -0.5px;
}

/* 입력 필드 디자인 (회색 박스 형태) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    background-color: #f5f5f5 !important;
    border: none !important;
    padding: 12px 15px;
    font-size: 15px;
    color: #444;
    border-radius: 2px;
    width: 100%;
    box-sizing: border-box;
}

/* 하단 개인정보 동의 섹션 (기존 커스텀 스타일 유지/통합) */
.privacy-section h3 {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    padding: 30px 0 15px;
    margin: 0;
}

.privacy-section table th,
.privacy-section table td {
    border-bottom: 1px solid #ddd;
}

.privacy-section table th {
    background: #f9f9f9 !important; /* 동의표는 th 배경색 유지 */
    text-align: center;
    font-size: 15px;
    width: auto;
}

.privacy-section table td {
    font-size: 14px;
    color: #444;
    padding: 15px 20px;
}

.privacy-section p {
    font-weight: 400;
    color: #666;
    margin: 15px 0;
}

/* 연락처/이메일 다중 필드 정렬 */
.tel-field, .email-field {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tel-field input, .tel-field select,
.email-field input, .email-field select {
    width: auto !important;
    flex: 1;
}

/* 작성 완료 버튼 */
.submit-wrap {
    position: relative;
    text-align: center;
    margin-top: 40px;
}
.submit-wrap .wpcf7-spinner {
    position: absolute;
    top: 13px;
}

.wpcf7-form input[type="submit"] {
    background: #000;
    color: #fff;
    padding: 15px 80px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
    opacity: 0.8;
}

.co-red { 
    color: #e74c3c; 
    font-weight: bold; 
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    .inquiry-table,
    .inquiry-table tbody,
    .inquiry-table tr,
    .inquiry-table th,
    .inquiry-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .inquiry-table tr {
        padding: 15px 0;
        border-bottom: 1px solid #ddd;
    }

    .inquiry-table th {
        border-bottom: none;
        padding: 0 0 8px 0 !important;
        text-align: left;
    }

    .inquiry-table td {
        border-bottom: none;
        padding: 0 !important;
    }

    .tel-field, .email-field {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}