/* =========================================
   bazaar 201 HEADER
========================================= */

.ff-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #fff;
    color: #222;
    font-family: Arial, "Noto Sans KR", sans-serif;
}

.ff-header *,
.ff-header *::before,
.ff-header *::after {
    box-sizing: border-box;
}

.ff-header a {
    color: inherit;
    text-decoration: none;
}

.ff-header button,
.ff-header input {
    font: inherit;
}

.ff-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   메인 헤더
========================================= */

.ff-header-main {
    background: #fff;
}

.ff-header-main-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

/* 로고 */

.ff-logo {
    flex-shrink: 0;
}

.ff-logo a {
    display: block;
}

.ff-logo img {
    display: block;
    width: 185px;
    height: auto;
}

/* 검색창 */

.ff-search {
    width: 100%;
    max-width: 350px;
    margin-left: auto;
}

.ff-search form {
    height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.ff-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 8px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 12px;
}

.ff-search input::placeholder {
    color: #999;
}

.ff-search button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #222;
    cursor: pointer;
}

/* 회원 메뉴 */

.ff-header-actions {
    display: flex;
    align-items: center;
    gap: 17px;
    flex-shrink: 0;
}

.ff-header-actions > a {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}

.ff-header-actions > a:hover {
    color: #e6002d;
}

/* =========================================
   카테고리 네비게이션
========================================= */

.ff-navigation {
    height: 43px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.ff-navigation .ff-container {
    height: 100%;
}

.ff-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-nav-list > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.ff-nav-list > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.ff-nav-list > li > a:hover {
    color: #e6002d;
}

/* =========================================
   PC 중분류
========================================= */

.ff-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .08);
    list-style: none;
    z-index: 200;
}

.ff-nav-item:hover > .ff-submenu,
.ff-nav-item:focus-within > .ff-submenu {
    display: block;
}

.ff-submenu li {
    display: block;
}

.ff-submenu li a {
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 400;
    color: #555;
    white-space: nowrap;
}

.ff-submenu li a:hover {
    color: #e6002d;
    background: #fafafa;
}

/* =========================================
   모바일 버튼
========================================= */

.ff-mobile-menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    padding: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
}

.ff-mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #222;
}

/* =========================================
   모바일 메뉴
========================================= */

.ff-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 15px rgba(0, 0, 0, .08);
    z-index: 300;
}

.ff-mobile-menu[hidden] {
    display: none !important;
}

.ff-mobile-menu-inner {
    padding: 20px;
}

.ff-mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-mobile-menu li {
    border-bottom: 1px solid #eee;
}

.ff-mobile-menu li a {
    display: block;
    padding: 13px 5px;
    font-size: 13px;
}

.ff-mobile-search {
    display: flex;
    margin-bottom: 15px;
}

.ff-mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 13px;
}

.ff-mobile-search button {
    padding: 0 15px;
    border: 0;
    background: #222;
    color: #fff;
    cursor: pointer;
}

.ff-mobile-category-item > a {
    font-weight: 600;
}

.ff-mobile-category-list .ff-mobile-submenu {
    display: block;
    padding: 0 0 8px 15px;
    background: #fafafa;
}

.ff-mobile-submenu li {
    border-bottom: 0;
}

.ff-mobile-submenu li a {
    padding: 9px 12px;
    font-size: 12px;
    color: #777;
}

/* =========================================
   태블릿
========================================= */

@media (max-width: 1024px) {

    .ff-header-main-inner {
        gap: 20px;
    }

    .ff-logo img {
        width: 160px;
    }

    .ff-search {
        max-width: 280px;
    }

    .ff-nav-list {
        gap: 16px;
    }

    .ff-nav-list > li > a {
        font-size: 11px;
    }
}

/* =========================================
   모바일
========================================= */

@media (max-width: 767px) {

    .ff-container {
        padding: 0 15px;
    }

    .ff-header-main-inner {
        min-height: 65px;
        gap: 12px;
    }

    .ff-logo img {
        width: 125px;
    }

    .ff-search {
        display: none;
    }

    .ff-header-actions {
        margin-left: auto;
        gap: 10px;
    }

    .ff-header-actions > a {
        display: none;
    }

    .ff-mobile-menu-btn {
        display: flex;
    }

    .ff-navigation {
        display: none;
    }

    .ff-mobile-menu:not([hidden]) {
        display: block;
    }
}
/* ==========================================
   bazaar 201 시안 헤더 보정
========================================== */

/* 전체 너비 */
.ff-container {
    max-width: 1250px;
}

/* 상단 헤더 */
.ff-header-main-inner {
    min-height: 136px;
    align-items: center;
}

/* 로고 */
.ff-logo img {
    width: 238px;
}

/* 오른쪽 영역 */
.ff-header-right {
    width: 500px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* AI 검색 */
.ff-search {
    width: 100%;
    max-width: 500px;
    margin: 0;
}

.ff-search form {
    height: 45px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff-ai-badge {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-search input {
    font-size: 14px;
    padding: 0;
}

.ff-search button {
    width: 35px;
}

/* 회원 메뉴 */
.ff-header-actions {
    margin-top: 17px;
    gap: 18px;
}

.ff-header-actions > a {
    font-size: 12px;
}

/* 카테고리 */
.ff-navigation {
    height: 72px;
}

.ff-nav-inner {
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 0;
}

/* 전체 메뉴 버튼 */
.ff-all-menu-btn {
    width: 74px;
    min-width: 74px;
    border: 0;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.ff-all-menu-btn span {
    width: 23px;
    height: 2px;
    background: #111;
}

/* 최대세일 */
.ff-special-menu {
    width: 135px;
    min-width: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e6002d !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

/* 카테고리 목록 */
.ff-nav-list {
    flex: 1;
    justify-content: space-between;
    gap: 0;
    overflow: visible;
}

.ff-nav-list > li {
    flex-shrink: 0;
}

.ff-nav-list > li > a {
    padding: 0 8px;
    font-size: 15px;
    font-weight: 700;
}

/* 화면이 좁아질 때 */
@media (max-width: 1024px) {

    .ff-header-main-inner {
        min-height: 105px;
    }

    .ff-logo img {
        width: 180px;
    }

    .ff-header-right {
        width: 420px;
    }

    .ff-navigation {
        height: 60px;
    }

    .ff-special-menu {
        width: 110px;
        min-width: 110px;
        font-size: 14px;
    }

    .ff-nav-list > li > a {
        padding: 0 10px;
        font-size: 13px;
    }
}

/* 모바일 */
@media (max-width: 767px) {

    .ff-header-main-inner {
        min-height: 75px;
    }

    .ff-logo img {
        width: 125px;
    }

    .ff-header-right {
        width: auto;
        flex: 1;
    }

    .ff-search {
        display: none;
    }

    .ff-header-actions {
        display: none;
    }

    .ff-navigation {
        display: block;
        height: 50px;
    }

    .ff-nav-inner {
        padding: 0 15px;
    }

    .ff-all-menu-btn {
        width: 50px;
        min-width: 50px;
    }

    .ff-special-menu {
        width: 100px;
        min-width: 100px;
        font-size: 12px;
    }

    .ff-nav-list {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ff-nav-list::-webkit-scrollbar {
        display: none;
    }

    .ff-nav-list > li > a {
        padding: 0 12px;
        font-size: 12px;
    }
}
/* 로고 좌측 정렬 보정 - PC */
@media (min-width: 768px) {
    .ff-logo {
        margin-left: -18px;
    }
}


/* ==========================================
   PC 전체 카테고리 메뉴 - 고객 시안
========================================== */
@media (min-width: 768px) {

    .ff-mobile-menu:not([hidden]) {
        display: block;
    }

    .ff-mobile-menu {
        position: absolute;
        top: 150px;
        left: max(16px, calc((100% - 1250px) / 2));
        width: 707px;
        height: 644px;
        max-height: none;
        overflow: visible;
        background: #fff;
        border: 1px solid #999;
        box-shadow: none;
        z-index: 300;
    }

    .ff-mega-menu-inner {
        display: grid;
        grid-template-columns: 155px 187px minmax(0, 1fr);
        gap: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .ff-mega-column {
        min-width: 0;
        padding: 13px 0 20px;
    }

    .ff-mega-column:nth-child(1),
    .ff-mega-column:nth-child(2) {
        border-right: 1px solid #aaa;
    }

    /* 고객 시안에는 별도 제목이 없음 */
    .ff-mega-column > h3 {
        display: none;
    }

    .ff-mega-column > ul > li {
        position: relative;
        border: 0;
        margin: 0;
    }

    .ff-mega-column > ul > li > a,
    .ff-mega-column > ul > li > span {
        display: block;
        padding: 11px 15px 11px 34px;
        color: #444;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        white-space: nowrap;
    }

    .ff-mega-column > ul > li:hover > a,
    .ff-mega-column > ul > li:hover > span {
        background: #d0d0d0;
        color: #111;
    }

    /* 문의게시판 하위 항목 */
    .ff-mega-has-sub {
        position: relative;
    }

    .ff-mega-sub {
        display: none;
        position: absolute;
        top: 0;
        left: 50%;
        width: 50%;
        padding: 0 !important;
        border: 0;
        background: #fff;
        box-shadow: none;
        z-index: 2;
    }

    .ff-mega-has-sub:hover .ff-mega-sub {
        display: block;
    }

    .ff-mega-sub > li {
        border: 0;
    }

    .ff-mega-sub > li > span {
        display: block;
        padding: 11px 4px;
        font-size: 12px;
        line-height: 16px;
        white-space: nowrap;
    }
}

/* ==========================================
   최상단 빨간 안내 띠
========================================== */
.ff-top-notice {
    width: 100%;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6002d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 767px) {
    .ff-top-notice {
        height: 30px;
        padding: 0 10px;
        font-size: 10px;
    }
}
html,
body {
    margin: 0;
    padding: 0;
}


/* 고객 시안 - 로고 및 헤더 배치 */
@media (min-width: 768px) {
    .ff-header-main-inner {
        min-height: 92px;
        gap: 30px;
        position: relative;
    }

    .ff-brand-area {
        display: flex;
        align-items: center;
        gap: 18px;
        flex-shrink: 0;
    }

    .ff-logo {
        margin-left: -20px;
    }

    .ff-logo img {
        width: 165px;
    }

    .ff-brand-slogan {
        color: #444;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .ff-header-right {
        width: auto;
        margin-left: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }

    .ff-header-actions {
        margin-top: 0;
        gap: 14px;
    }

    .ff-header-actions > a {
        font-size: 11px;
    }

    .ff-header-icon-search button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 35px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .ff-header-search-panel {
        position: absolute;
        top: calc(100% - 5px);
        right: 20px;
        width: 360px;
        padding: 15px;
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 5px 15px rgba(0,0,0,.1);
        z-index: 500;
    }

    .ff-header-search-panel[hidden] {
        display: none;
    }

    .ff-header-search-panel form {
        display: flex;
        gap: 8px;
    }

    .ff-header-search-panel input {
        flex: 1;
        min-width: 0;
        padding: 10px;
        border: 1px solid #ddd;
        font-size: 13px;
    }

    .ff-header-search-panel button {
        padding: 0 15px;
        border: 0;
        background: #111;
        color: #fff;
        cursor: pointer;
    }
}

/* 최대세일 그 이상 - 빨간색 강조 */
.ff-nav-list > li > a.ff-nav-sale {
    color: #e6002d;
    font-weight: 800;
}



