/*
:where(.wp-site-blocks *:focus){outline-width:2px;outline-style:solid}
*/

:where(.wp-site-blocks *:focus-visible){
    outline-width: 2px;
    outline-style: solid;
}

body.single-product .wp-site-blocks > .wp-block-group.woocommerce.product {
    margin-block-start: 0 !important;
}



/* ========================================
Header Scroll Up / Down
======================================== */

.header-scroll-updown {
    transition: transform 0.35s ease;
    will-change: transform;
    z-index:999;
}

header:has(.header-scroll-updown.is-floating) {
    position: relative;
    z-index: 99999 !important;
}

/* 원래 위치를 벗어난 뒤 floating 상태 */
.header-scroll-updown.is-floating {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    z-index: 9999;
    overflow: visible !important;
    background-color:#FFF;
    border-bottom:2px solid #111;

    transform: translateY(0);
}

/* 아래로 스크롤할 때 위로 숨김 */
.header-scroll-updown.is-floating.is-hidden {
    transform: translateY(-100%);
}



/* ========================================
Header Scroll Up / Down
======================================== */


.brand-top-container {
    padding:0 60px !important;
}

.brand-top-layout {
    gap: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.brand-top-layout > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.brand-top-layout-container {
    padding: 0 60px !important;
}

@media (max-width: 768px) {
    .brand-top-layout-container {
        padding: 0 !important;
    }
}

.breadcrumb-row {
    border-top:4px;
    padding:8px 0;
    justify-content: flex-end;
}

@media (max-width: 781px) {
    .breadcrumb-row {
        justify-content: center !important;
    }
}

.brand-bottom-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding:10px 0 !important;
        border-bottom:2px solid #111;
    }
@media (max-width: 768px) {

    .brand-bottom-row {
        justify-content: center !important;
    }

    .brand-bottom-row .brand-submenu-row {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 0;
        margin: 0 !important;
        justify-content: safe center !important;
    }

}



@media (max-width: 768px) {
    .brand-submenu-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: safe center !important;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .brand-submenu-scroll .auto-active-submenu {
        flex-wrap: nowrap !important;
        flex-shrink: 0;
    }
    
}


/* 페이지 상단 breadcrumb */
.product-navigation {text-align:right;}

/* 상품 페이지 모바일 조정 */
@media (max-width: 768px) {
    .product-navigation {display:none;} /* 상단 네비 제거*/
    .product-spacer-custom1,
    .product-divider-custom1 { display:none; !important;}
    .product-spacer-custom2 { height:10px !important; }/* Hero아래 공간 제거 */
    .product-title-custom { font-weight:700 !important;} /* 제품명 굵게 */
    .wp-block-woocommerce-product-gallery { /* 썸네일 간격 통일 */
        row-gap: 8px !important;
    }
    /* 상품 갤러리 아래 여백 제거 */
    .single-product .wp-block-columns.product-main-columns {

        row-gap: 0 !important;

    }
}

/* Hero 공통 프레임 */
.product-hero {
    width: 100%;
    height: clamp(300px, 32vw, 600px);
    overflow: hidden;
}

/* Hero 이미지 */
.product-hero-image {
    display: block;
    width: 100%;
    height: 100% !important;
    
    object-fit: cover;
    object-position: 50% 50% !important;
}

/* Hero 동영상 */
.product-hero-video-wrap {
    width: 100%;
    height: clamp(200px, 32vw, 600px);
    overflow: hidden;
}

.product-hero-video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: 50% 50%;
}

/* 상품 상세페이지 - 설명 / 추가 정보 탭 메뉴 숨김 */

.single-product .woocommerce-tabs > ul.tabs {

    display: none !important;

}

/* //////상품페이지 브랜드 info //////*/
/* //////상품페이지 브랜드 info //////*/

.product-brand-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 60px;
    width: 100%;
    max-width: none;
    padding: 32px 0;
    box-sizing: border-box;
}

.product-brand-main {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.product-brand-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}

.product-brand-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-brand-text {
    min-width: 0;
    max-width: 480px;
}

.product-brand-name {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.product-brand-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color:#666;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.product-brand-description p {
    margin: 0;
}

.product-brand-button-wrap {
    justify-self: end;
}

.product-brand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    padding: 0 24px;

    border: 1px solid #d8d8d8;
    border-radius: 4px;

    color: inherit;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.product-brand-button:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .product-brand-info-mobile {
        display:none;
    }
}
/* //////상품페이지 브랜드 info end //////*/
/* //////상품페이지 브랜드 info end //////*/

.product-detail-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #999;
    color: #fff;
    text-decoration: none;
    font-size:16px;
    font-weight: 600;
    letter-spacing:-0.5px;
    line-height: 1;
    border-radius: 4px;
}

.product-detail-download:hover {
    background: #4b5259;
    color: #fff;
    text-decoration: none;
}


/*///// 상품 요약 설명 여백 조정////////*/
.wc-block-components-product-summary ul {
    padding-inline-start: 1.0em;
}

@media (max-width: 767px) {
     .wp-block-woocommerce-product-summary ul {
        padding-left: 14px !important;
        margin-left: 0 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;

    }
}


.dealer-map-resizable {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 300px;
    max-height: 1200px;
    overflow: hidden;

    /* 기존 native resize 제거 */
    resize: none;
}

.dealer-map-resizable iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 지도 높이 조절 드래그 바 */
.dealer-map-handle {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: ns-resize;
    background: rgb(51 51 51 / 60%);
    border-top: 1px solid #444;

    z-index: 10;
}

/* 가운데 손잡이 */
.dealer-map-handle span {
    width: 48px;
    height: 4px;
    background: #FFF;
    border-radius: 10px;
}

/* 드래그 중 지도 iframe이 마우스를 먹지 않게 */
.dealer-map-resizable.is-resizing iframe {
    pointer-events: none;
}

/* 모바일은 기존 250px 고정 + 리사이즈 비활성 */
@media (max-width: 781px) {
    .dealer-map-resizable {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .dealer-map-handle {
        display: none;
    }
}





/*///// 제품 목록 페이지 처리//////////*/
/*///// 제품 목록 페이지 처리//////////*/

/* 필터 지우기 버튼 */
.wc-block-product-filters .wp-block-button__link.wp-element-button {
    border: 0 !important;
    border-radius: 0 !important;

    background-color: #4f5663 !important;
    color: #fff !important;

    padding: 7px 12px !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;

    box-shadow: none !important;
}

/* hover */
.wc-block-product-filters .wp-block-button__link.wp-element-button:hover {
    background-color: #3f4754 !important;
    color: #fff !important;
}

/*///// 제품 목록 페이지 모바일 처리//////////*/
/*///// 제품 목록 페이지 모바일 처리//////////*/

@media (max-width: 767px) {

    /* 모바일 좌우 여백 제거 */
    .wp-block-group.responsive-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 모바일 Hero 높이 */
    .wp-block-group.responsive-padding .wp-block-cover {
        min-height: 250px !important;
        height: 250px !important;
    }
    
    /* 모바일 iframe Hero 높이 */
    .brand-dealer-map {
        height: 250px !important;
        min-height: 250px !important;
    }


    /* Hero 이미지 중앙 기준 크롭 */
    .wp-block-group.responsive-padding .wp-block-cover__image-background {
        object-fit: cover !important;
        object-position: center center !important;
    }
    
    .wc-block-product-template {

        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 16px 6px !important;

    }
    
 
    .hide-mobile { display: none !important; }
    .product-grid { padding:0 0px; } /* 모바일 목록부분 좌우여백*/
    .blog-grid { padding:0 10px; } /* 모바일 블로그 목록부분 좌우여백*/
    .archive-row-1 {padding:0 10px;}
    .archive-spacer {display:none;} 
    .archive-h2 {display:none;} /* 모바일 좌측 제목 제거*/
    .archive-h2-divider { /* 모바일 좌측 제목 하단라인 조정*/
        
        padding-bottom:0px;
        margin-bottom:0px !important;
    }
    



    


    /* ========================================
   모바일 Grid 열 개수
======================================== */

    /* 모바일 1열 */
    .mobile-grid-1col {
        grid-template-columns: 1fr !important;
    }

    /* 모바일 2열 */
    .mobile-grid-2col {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 모바일 3열 */
    .mobile-grid-3col {
        grid-template-columns: repeat(3, 1fr) !important;
    }






    /* ========================================
   모바일 상품 필터 가로 스크롤
======================================== */

@media (max-width: 768px) {

    /* ========================================
       모바일 상품 필터 - 부모 폭 강제 제한
    ======================================== */

    /* 필터가 들어있는 Gutenberg 컬럼 */
    .wp-block-column:has(.mobile-scroll-filter) {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    /* 필터 블록 전체 */
    .mobile-scroll-filter {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* WooCommerce 내부 래퍼들도 부모 폭을 넘지 못하게 */
    .mobile-scroll-filter .wc-block-product-filter,
    .mobile-scroll-filter .wc-block-product-filter-checkbox-list,
    .mobile-scroll-filter fieldset {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .mobile-scroll-filter fieldset {
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }


    /* ========================================
       실제 필터 항목 줄만 좌우 스크롤
    ======================================== */

    .mobile-scroll-filter
    .wc-block-product-filter-checkbox-list__items {

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        gap: 10px !important;
        padding: 0 !important;
        margin: 0 !important;

        box-sizing: border-box !important;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-scroll-filter
    .wc-block-product-filter-checkbox-list__items::-webkit-scrollbar {
        display: none;
    }


    /* 각 필터 항목은 자기 폭 유지 */
    .mobile-scroll-filter
    .wc-block-product-filter-checkbox-list__item {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .mobile-scroll-filter
    .wc-block-product-filter-checkbox-list__label {
        white-space: nowrap !important;
        gap: 4px !important;
    }
}

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    /* 각 필터 항목 */
    .wc-block-product-filter-checkbox-list__item {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* 체크박스와 텍스트 사이 간격 */
    .wc-block-product-filter-checkbox-list__label {
        gap: 4px !important;
        white-space: nowrap !important;
    }

    /* 활성 필터 칩 전체 크기 */
    .wc-block-product-filter-removable-chips__item {
        min-height: 0 !important;
        padding: 4px 8px !important;
        gap: 6px !important;
        
    }

    /* 칩 텍스트 */

    ul.wc-block-product-filter-removable-chips__items
    li.wc-block-product-filter-removable-chips__item
    span.wc-block-product-filter-removable-chips__label {
        font-size: 11px !important;
        line-height: 1.2 !important;
        font-weight: 400 !important;
    }

    /* X 버튼도 같이 축소 */
    .wc-block-product-filter-removable-chips__remove {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        padding: 0 !important;
    }

    /* 상품명 */
    .wc-block-product-template .wp-block-post-title {
        margin-top: 6px !important;
        margin-bottom: 5px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;

        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 600;

        text-align: center !important;

        /* 단어 단위 줄바꿈 */
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    /* 가격 */
    .wc-block-product-template .wp-block-woocommerce-product-price {
        padding-left: 5px !important;
        padding-right: 5px !important;

        font-size: 11px !important;
        line-height: 1.35 !important;
        text-align: center !important;
        color:#777;
    }

    .wc-block-product-template .woocommerce-Price-amount {
        font-size: inherit !important;
    }

    /* 그리드 간격 조정*/
     .wc-block-product-template {
        gap: 20px 1px !important; /* 세로 / 가로 */
    }
    
}
/*///// 제품 목록 페이지 모바일 처리 end //////////*/
/*///// 제품 목록 페이지 모바일 처리 end //////////*/



/* 활성 필터 칩 */
.wc-block-product-filter-removable-chips__label,
.wc-block-product-filter-removable-chips__text,
.wc-block-product-filter-removable-chips button {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* 필터 지우기 버튼 */
.wc-block-product-filter-clear-button {
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* 필터 지우기 버튼 */
.wc-block-product-filter-clear-button button {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    padding: 5px 10px !important;
    min-height: auto !important;
}



/* 서브메뉴 버튼 자동 활성화 */
/* 클래스 auto-active-submenu 삽입*/

.auto-active-submenu .wp-block-button__link.is-active,
.auto-active-submenu .wp-block-button__link[aria-current="page"] {
    background-color: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}


/* 블로그글 관련 제품 출력 */



.related-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.related-product-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-product-image {
    display: block;
    width: 100%;
    height: auto;
}
.related-product-divider {

    border: 0;

    border-top: 1px solid #ddd;

    margin: 60px 0;

}
.related-product-section h2 {
    font-size:24px;
    margin-bottom: 10px;
}
.related-product-card h3 {
    margin-top: 14px;
    font-size:17px;
    text-align:center;
}

@media (max-width: 767px) {
    .related-product-grid {
        grid-template-columns: 1fr;
    }
}
/* 블로그글 관련 제품 출력 end */





/* ========================================
   상품 Hero - YouTube
======================================== */

.product-hero-youtube-wrap {
    position: relative;
    width: 100%;
    height: clamp(300px, 32vw, 600px);
    overflow: hidden;
    background: #111;
}


/*
 * YouTube iframe
 * 16:9 영상을 Hero 영역에 cover 방식으로 채움
 */
.product-hero-youtube-wrap iframe {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100vw;
    height: 56.25vw;

    min-width: 177.78vh;
    min-height: 100%;

    transform: translate(-50%, -50%);

    border: 0;

    pointer-events: none;
}


/*
 * YouTube 로딩 중 가림막
 */
.product-hero-video-loader {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111;

    z-index: 5;

    opacity: 1;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/*
 * 영상 재생 시작 후 제거
 */
.product-hero-video-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/*
 * 로딩 spinner
 */
.product-hero-spinner {
    width: 36px;
    height: 36px;

    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #fff;

    border-radius: 50%;

    animation:
        product-hero-spin 0.8s linear infinite;
}


@keyframes product-hero-spin {

    to {
        transform: rotate(360deg);
    }

}




/* ========================================
   상품 상세페이지 - 관련 콘텐츠
======================================== */

/* 관련 콘텐츠 전체 영역 */
.product-related-posts {
    width: 100%;
}

/* '관련 콘텐츠' 제목 */
.product-related-posts-title {
    margin: 0 0 24px;
    font-size: 20px;
}

/* 관련 콘텐츠 목록 */
.product-related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 카드 사이 구분선 */
.product-related-post-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 18px 0;
}

/* 개별 포스트 카드 */
.product-related-post-card {
}

/* 카드 링크 공통 */
.product-related-post-card a {
    color: inherit;
    text-decoration: none;
}




/* ========================================
   SIDE LIST TYPE 1
   이미지 좌측 + 제목 우측
======================================== */

.side-list-type1 .side-list-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

/* 사이드 리스트 공통 헤딩 */

/* 사이드 리스트 공통 헤딩 */
.side-list-section .side-list-heading {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.side-list-type1 .side-list-image {
    flex: 0 0 38%;
    width: 38%;
    overflow: hidden;
}

.side-list-type1 .side-list-image a {
    display: block;
    width: 100%;
}

.side-list-type1 .side-list-image img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
}

.side-list-type1 .side-list-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.side-list-type1 .side-list-title a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.side-list-type1 .side-list-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 18px 0;
}


/* ========================================
   SIDE LIST TYPE 2
   이미지 위 + 제목 아래
======================================== */

.side-list-type2 .side-list-card {
    display: block;
    width: 100%;
}

.side-list-type2 .side-list-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 8px;
}

.side-list-type2 .side-list-image a {
    display: block;
    width: 100%;
}

.side-list-type2 .side-list-image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
}

.side-list-type2 .side-list-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.side-list-type2 .side-list-title a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.side-list-type2 .side-list-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 18px 0;
}



/* ========================================
상품 iframe
======================================== */
.product_iframe_title {
    margin-top:100px;
    margin-bottom: 30px;
    padding-bottom:20px;
    border-bottom:2px solid #222;
    font-size:30px;
}

.product-iframe-embed {
    max-width: 100%;
    margin-inline: auto;
    overflow: auto;
    margin-bottom:100px;
}

.product-iframe-embed iframe {
    display: block;
    max-width: 100%;
    border: 0;
}


/* ========================================
   브랜드 글 아카이브 Hero
======================================== */

.brand-archive-hero {
   
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    height: 600px;
    padding-left: 50px;
    box-sizing: border-box;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.brand-archive-hero-logo-wrap {
    margin: 0;
}


.brand-archive-hero figure {
 
    margin: 0;
}

.brand-archive-hero-logo {
    display: block;
  }

@media (max-width: 781px) {

    .brand-archive-hero {
        height: 250px;
    }

    .brand-archive-hero-logo-wrap {
        margin-left: 24px;
    }

    .brand-archive-hero-logo {
        max-width: 220px;
        max-height: 100px;
    }
}



/* ========================================
관련 콘텐츠가 없는 상품의 레이아웃 처리
======================================== */

/* 관련글 영역이 비어 있으면 오른쪽 사이드바 제거 */
.product-content-layout:has(
    .product-related-sidebar .side-list-type1:empty
) > .product-related-sidebar {
    display: none !important;
}

/* 관련글 영역이 비어 있으면 본문을 1열 전체폭으로 전환 */
.product-content-layout:has(
    .product-related-sidebar .side-list-type1:empty
) > .wp-block-column:not(.product-related-sidebar) {
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}



/* ========================================
   기존 상품 상세 이미지 정렬 보정
======================================== */

/*
 * 이전 사이트에서 가져온 HTML에
 * <img><img><img> 형태로 이미지가 연속되어 있어도
 * 각각 block으로 처리하고 중앙 정렬
 */
.product-content-layout
> .wp-block-column:first-child img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}


/* 서브메뉴 */
.wp-block-navigation__submenu-container {
   
    padding:10px;
    background-color:#FFF;
    border-radius:10px;

}



/* ========================================
   단일글 커버 Hero
======================================== */
.post-hero .wp-block-cover__image-background {
    filter: blur(5px);
    transform: scale(1.01);
}
.post-hero-title {
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.3);
}
    

.brand-name-dynamic {
    font-size:18px !important;
    text-transform: uppercase;
}

@media (max-width: 781px) {
    .brand-name-dynamic {display:none;}
        .post-hero-title {
            font-size:14px important;
        }
    }

/* ========================================
   브랜드 공통 Breadcrumb
======================================== */

.brand-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* PC 우측 정렬 */
    flex-wrap: wrap;
    gap: 8px;

    font-size: 13px;
    line-height: 1.4;
}

.brand-breadcrumb a:nth-of-type(2) {

    text-transform: uppercase;

}

@media (max-width: 781px) {

    .brand-breadcrumb {
        position: relative;

        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;

        white-space: nowrap;
        overflow: hidden;

        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;

        text-align: center;
        padding-left: 20px;
        padding-right: 20px;

        box-sizing: border-box;
    }

    /* 기본적으로 페이드 없음 */
.brand-breadcrumb::after {
    display: none;
}

/* 실제로 넘칠 때만 페이드 */
.brand-breadcrumb.is-overflowing::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    pointer-events: none;

    background: linear-gradient(
        to right,
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );
}
}

.brand-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.brand-breadcrumb a:hover {
    text-decoration: underline;
}

.brand-breadcrumb-separator {
    opacity: 0.45;
}

.brand-breadcrumb-current {
    opacity: 0.7;
}


/* ========================================
   Sticky 관련 콘텐츠
======================================== */

/* PC - 관련 콘텐츠 사이드바 Sticky */
.product-related-sidebar {
    position: sticky;
    top: 40px;
    align-self: flex-start;
}

/* 모바일 - Sticky 해제 */
@media (max-width: 781px) {

    .product-related-sidebar {
        position: static;
        padding: 0 10px;
    }
}

/* ========================================
IMAGE SLIDER - OUTER
Gutenberg Row / Grid 레이아웃만 무력화
======================================== */

.wp-block-group.image-slider,
.wp-block-group.image-slider-fade {
    position: relative;
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    gap: 0 !important;
    box-sizing: border-box;

    overflow: visible;
    padding-bottom: 30px;
}


/* ========================================
TRACK - 공통
======================================== */

.image-slider-track {
    position: relative;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box;
    overflow: hidden;
}


/* ========================================
SLIDE MODE
======================================== */

/* ========================================
SLIDE MODE
======================================== */

.slider-mode-slide .image-slider-track {
    position: relative;
    display: grid !important;
    width: 100%;
    overflow: hidden;
}

.slider-mode-slide .image-slider-slide {
    grid-area: 1 / 1;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    transition: transform 0.45s ease;
    will-change: transform;
}

.slider-mode-slide .image-slider-slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* ========================================
FADE MODE
======================================== */

.slider-mode-fade .image-slider-track {
    display: grid !important;
}

.slider-mode-fade .image-slider-slide {
    grid-area: 1 / 1;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.55s ease,
        visibility 0.55s ease;
}

.slider-mode-fade .image-slider-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}


/* ========================================
IMAGE
======================================== */

.image-slider-slide img {
    display: block;
    width: 100%;
    height: auto;
}


/* ========================================
좌우 버튼
======================================== */

.image-slider-prev,
.image-slider-next {
    position: absolute;
    top: calc(50% - 15px);
    z-index: 10;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: rgba(255,255,255,0.6);

    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        opacity 0.25s ease;
}

.image-slider-prev {
    left: 16px;
}

.image-slider-next {
    right: 16px;
}


/* 평상시에는 화살표만 옅게 */

.image-slider-prev,
.image-slider-next {
    opacity: 0.95;
}


/* 이미지 위에 마우스를 올리면 회색 원 표시 */

.image-slider:hover .image-slider-prev,
.image-slider:hover .image-slider-next,
.image-slider-fade:hover .image-slider-prev,
.image-slider-fade:hover .image-slider-next {
    background: rgba(0,0,0,0.35);
    color: #fff;
    opacity: 1;
}


/* ========================================
하단 페이징
======================================== */

.image-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 4px;

    display: flex;
    gap: 8px;

    transform: translateX(-50%);
    z-index: 10;
}

.image-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #cfcfcf;
    cursor: pointer;

    transition: background 0.2s ease;
}

.image-slider-dot.is-active {
    background: #555;
}


/* ========================================
모바일
======================================== */

@media (max-width: 768px) {

    .image-slider,
    .image-slider-fade {
        padding-bottom: 26px;
    }

    .image-slider-prev,
    .image-slider-next {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .image-slider-prev {
        left: 10px;
    }

    .image-slider-next {
        right: 10px;
    }

    .image-slider-dots {
        bottom: 2px;
    }
}


