/*
=====================================
CG12R Header
Version : 2.0 Final
Build   : 2026-07-03
=====================================
*/

.header-wrap,
.header-wrap *{
    box-sizing:border-box;
}

.header-wrap{
    position:relative;
    max-width:1100px;
    margin:0 auto 16px;
    padding:14px 0 4px;
}

/* Logo */
.header-top{
    display:flex;
    align-items:center;
    margin-bottom:12px;
    min-height:60px;
}

.header-brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    min-width:0;
    padding-right:170px;
}

.header-logo-img{
    display:block;
    width:56px !important;
    height:56px !important;
    max-width:56px;
    max-height:56px;
    object-fit:contain;
    flex:0 0 56px;
}

.header-logo-text{
    min-width:0;
}

.header-title{
    display:inline-block;
    font-size:30px;
    font-weight:bold;
    line-height:1.1;
    background:linear-gradient(180deg,#fff6d5,#d6a84f,#7a6230);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.header-subtitle{
    margin-top:4px;
    font-size:14px;
    color:#d6a84f;
    white-space:nowrap;
}

/* Gift */
.header-gift-btn{
    position:absolute;
    top:18px;
    right:0;
    z-index:5;

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

    padding:8px 14px;
    border-radius:999px;

    background:linear-gradient(180deg,#fff6d5,#d6a84f,#9b6b1f);
    color:#221600;

    font-size:14px;
    font-weight:bold;
    text-decoration:none;
    white-space:nowrap;

    box-shadow:
    0 2px 8px rgba(0,0,0,.25),
    0 0 18px rgba(214,168,79,.35);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.header-gift-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0,0,0,.35),
        0 0 12px rgba(214,168,79,.25);

}

/* 滑鼠移入 */
.header-gift-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,.35);
    filter:brightness(1.08);
}

/* 按下去 */
.header-gift-btn:active{
    transform:translateY(0);
    box-shadow:0 3px 8px rgba(0,0,0,.28);
}

/* Nav */
.header-nav{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:14px;
}

.header-nav a{
    flex:0 0 auto;
    color:#d6a84f;
    border:1px solid #7a6230;
    background:#181818;
    border-radius:8px;
    padding:8px 13px;
    font-size:14px;
    font-weight:bold;
    text-decoration:none;
}

.header-nav a:hover{
    background:#2a2418;
}

/* Search */
.header-search{
    display:flex;
    gap:8px;
    width:100%;
    max-width:100%;
}

.header-input{
    flex:1;
    min-width:0;
    background:#1a1a1a;
    border:1px solid #444;
    color:#fff;
    padding:11px 12px;
    border-radius:8px;
    font-size:15px;
}

.header-btn{
    flex:0 0 auto;
    background:#7a6230;
    color:#fff;
    border:0;
    padding:0 14px;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
    white-space:nowrap;
}

/* Mobile */
@media(max-width:520px){

    .header-wrap{
        padding:10px 12px 4px;
    }

    .header-top{
        min-height:56px;
        margin-bottom:12px;
    }

    .header-brand{
        gap:8px;
        padding-right:92px;
    }

    .header-logo-img{
        width:48px !important;
        height:48px !important;
        max-width:48px;
        max-height:48px;
        flex:0 0 48px;
    }

    .header-title{
        font-size:24px;
        line-height:1.1;
        white-space:nowrap;
    }

    .header-subtitle{
        font-size:12px;
        white-space:nowrap;
    }

    .header-gift-btn{
        top:14px;
        right:12px;
        padding:7px 9px;
        font-size:12px;
        transition:.2s ease;
    }

    .header-nav{
        gap:8px;
        margin-bottom:12px;
    }

    .header-nav a{
        flex:1 1 calc(33.333% - 8px);
        text-align:center;
        padding:9px 4px;
    }

    .header-search{
        flex-wrap:wrap;
    }

    .header-input{
        flex:0 0 100%;
    }
    
        .header-btn{
        flex:1;
        height:40px;
    }

}

    /* ===== Breadcrumb ===== */
.cg-breadcrumb{
    padding:12px 0;
    font-size:15px;
    white-space:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
}

.cg-breadcrumb::-webkit-scrollbar{
    display:none;
}

.cg-breadcrumb a{
    color:#d8b15a;
    text-decoration:none;
    transition:.2s;
}

.cg-breadcrumb a:hover{
    color:#ffd77a;
}

.cg-breadcrumb span{
    color:#f5f5f5;
    font-weight:bold;
}

.cg-breadcrumb-sep{
    color:#8d7a4a;
    margin:0 8px;
}
/* Header search tools */
.header-search-row{
    display:flex;
    gap:8px;
    width:100%;
    align-items:stretch;
}

.header-search-row .header-search{
    flex:1 1 auto;
    min-width:0;
}

.header-tool{
    flex:0 0 44px;
    min-width:44px;
    height:40px;
    border-radius:0;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    text-decoration:none;
    color:#fff;
    font-size:0;
}

.header-cart{
    background:#003cff;
}

.header-notice{
    background:#ff0018;
}

.header-tool-count{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:18px;
    height:18px;
    line-height:18px;
    border-radius:9px;
    background:#d6a84f;
    color:#111;
    font-size:12px;
    font-weight:bold;
    text-align:center;
    display:none;
}

@media(max-width:520px){
    .header-search-row{
        flex-wrap:wrap;
    }

    .header-search-row .header-search{
        flex:0 0 100%;
    }

    .header-tool{
        flex:1;
    }
}
