/*/////////////////////////////////////////////////////////////////////
 // 
 // Custom theme code styles
 // Written by Themelize.me (http://themelize.me)
 // 
 // This is an empty starter template for overriding styles
 // set by Bootstrap & the theme
 // 
 // ----------------------------------------------------
 // 
 // Remove unused code for better performances
 // 
 // ----------------------------------------------------
 // 
 // $see - Usefuls tools online for editing
 // 1. http://charliepark.org/bootstrap_buttons/ - Button style generator
 // 2. http://www.colorzilla.com/gradient-editor/ - CSS3 gradient maker
 // 
 // $note
 // To ensure custom styles are picked up
 // wrap definitions in body tag
 // ie.
 // body .navbar-inner {
 //   background: #ff0000;
 // }
 // 
 /////////////////////////////////////////////////////////////////////*/
/*******************************************************
 * Custom theme code styles
 * Written by Themelize.me (http://themelize.me)
 *
 * Includes the base variables & mixins needed for all
 * scss files
 *******************************************************/
/*
 * --------------------------------------------------
 * 1. General Elements
 *--------------------------------------------------
 */




#header {
  /* 1. Header wrapper */
  
  .header>.container-fluid {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
  
}


#highlighted {
  /* 2. Highlighted (below header) wrapper */
}

#content {
  /* 3. Content wrapper */
}
.header {
    z-index: 2;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 11;
    background: #fff;
    border-top: 3px solid #0251a5;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
#content-below {
  /* 4. Content Below wrapper */
}

#footer {
    /* 5. Footer wrapper */
    border-top: 2px solid #34495e;
    background: #ebebeb;
    color: #3b3931;
    font-family: 'Noto Sans TC';
}

/* Footer Link */
.footer_link a{
    color: #3b3931;
}
.footer_link a:hover{
    color: #3b3931;
}
.footer_h4{
    color: #0251a5 !important;
    margin-bottom: 25px;
}
.footer_logo_img{
    width: 85%;
    margin-bottom: 10px;
}
.footer_line_img{
    width: 43%;
}

/* 驗證欄位顯示 */
.error{
    color: #F60;
}

/* 按鈕顏色 */
.btn-blue-dark {
    color: #fff;
    background-color: #0251a5;
    border-color: #0251a5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
}
.btn-blue-dark:not(:disabled):not(.disabled).active, .btn-blue-dark:not(:disabled):not(.disabled):active, .show>.btn-blue-dark.dropdown-toggle {
    color: #fff;
    background-color: #0251a5;
    border-color: #0251a5;
}


/* product */
/* Product List img*/
.p_list_img_div{
    display:flex;
    justify-content:center;
    align-items:center;
    height: 220px;
    width: 100%;
}
.p_list_img_div img{
    max-height: 100%;
    width: auto;
}
.btn-danger {
    color: #fff;
    background-color: #0251a5;
    border-color: #0251a5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
}

.btn-danger.focus, .btn-danger:focus, .btn-danger:hover {
    background-color: #0251a5;
    border-color: #0251a5;
    color: #fff;
}
.btn-danger:not(:disabled):not(.disabled).active, .btn-danger:not(:disabled):not(.disabled):active, .show>.btn-danger.dropdown-toggle {
    color: #fff;
    background-color: #0251a5;
    border-color: #0251a5;
}

/* 表單 */
.from_format{
    margin-bottom: 20px;
    
}
.form-label{
    font-weight: 900;
}
.asterisk_clock{
    color: red;
}


/* 詢問車ICON */
.car_cion {
    width: 30px;
    height: 30px;
    position: fixed;
    right: 0;
    top: 50%;
    margin-top: -50px;
    z-index: 99;
}
.car_cion i{
    font-size: 40px;
}
.car_cion a{
    width: 130px;
}
.car_cion img{
    height: 30px;
}

.cart-link .cart-link-count, .cart-link-lg .cart-link-count {
    position: absolute;
    top: -7px;
    right: -60px;
    margin: 0;
    font-weight: 700;
    font-size: 23px;
    border-radius: 100%;
    height: 30px;
    line-height: 24px;
    width: 30px;
    padding: 0;
    text-align: center;
    border: 1px solid #fff;
    display: inline-block;
}

/* 
    首頁 
*/

/* 關於永欣區塊 */
.index_highlight-box {
    position: relative;
    padding-left: 20px;
}

.index_yellow-line {
    position: absolute;
    top: 5px;
    left: 0;
    width: 6px;
    height: 60px;              /* 或用 100% */
    background-color: #FFD700;
    border-radius: 3px;         /* ✅ 圓角設定 */
}
/* 關於永欣區塊 END */

/* 首頁 Contce 按鈕顏色 */
.contace-btn-primary {
    color: #fff;
    background-color: #0251a5;
    border-color: #0251a5;
    color: white;
}
/* 首頁 Contce 按鈕顏色 END */

.pagination-lg .page-link {
    font-size: 1rem;
}
/*
 * --------------------------------------------------
 * 2. Colours
 *-------------------------------------------------- 
 */
/*
 * --------------------------------------------------
 * 3. Responsiveness/media queries
 *--------------------------------------------------
 */
/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */
@media (min-width: 576px) {
  /* Small devices (576px and up). Mixin: media-breakpoint-up(sm) */
  
  .logo {
        width: 40%;
        position: absolute;
        left: 37px;
        top: 43px;
        height: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        overflow: hidden;
    }
    
    .logo img {
        max-width: 55%;
        max-height: 120px;
    }
    
    .logo, .search-wrap, .toolbar {
        display: inline-block;
        vertical-align: middle;
    }
  
}

@media (min-width: 768px) {
    
    #content{
        min-height: 250px;
    }
    
  /* Medium devices (768px and up). Mixin: media-breakpoint-up(md) */
  .header-brand{
      margin-right: -75px  !important;
  }
  .header-brand .logo{
      width: 70%;
  }
  
  .mainav_wrap {
        margin-bottom: 0;
        border-radius: 0;
        margin-left: calc(28% + 15px);
        border: 1px solid #ccc;
        border-left: 0;
        border: 0;
    }
  
  .logo {
        width: 40%;
        position: absolute;
        left: 37px;
        top: 43px;
        height: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        overflow: hidden;
    }
    
    .logo img {
        max-width: 55%;
        max-height: 120px;
    }
    
    .logo, .search-wrap, .toolbar {
        display: inline-block;
        vertical-align: middle;
    }


    .search-wrap {
        width: 72%;
        padding-left: 10px;
        margin-right: auto;
        text-align: left;
        margin-left: 0;
        margin-top: 0px;
        margin-bottom: 10px;
        position: relative;
        left: 36%;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .navbar-static-top{
        margin-bottom: 10px;
    }
    
    .toolbar {
        text-align: right;
        margin-right: 20%;
    }

    .lang-top {
        text-align: center;
        background: #d43f3a;
        background: #eee;
        display: inline-block;
        margin-bottom: 0;
        float: right;
        border-radius: 30px;
        padding: 5px;
    }
    .toolbar a {
        color: #000;
        text-decoration: none;
        margin: 0 15px;
        position: relative;
        display: inline-block;
        vertical-align: middle;
    }
    
    .toolbar a:focus, .toolbar a:hover {
        text-decoration: none;
        color: #D83C3C;
    }
    
    .toolbar .iconfont {
        font-size: 35px;
    }
    .toolbar .menu-txt {
        display: none;
    }

    .toolbar .cart-count {
        right: -16px;
        top: -14px;
    }
    /* Menu 使用 */
    .cart-count {
        position: absolute;
        width: 25px;
        height: 25px;
        background: #fa0000;
        color: #FFF;
        display: block;
        border-radius: 50%;
        top: -3px;
        right: -5px;
        font-weight: 900;
        font-size: 10px;
        text-align: center;
        padding-top: 2px;
    }
    /* 右側選單使用 */
    .cart-count_right {
        position: absolute;
        width: 25px;
        height: 25px;
        background: #fa0000;
        color: #FFF;
        display: block;
        border-radius: 50%;
        top: 59px;
        right: 22px;
        font-weight: 900;
        font-size: 10px;
        text-align: center;
        padding-top: 2px;
    }
    
    
    .index_about{
        padding-left: 15%;
        padding-right: 15%;
    }
    
    .PC_device_not_show {
        display: none  !important;
    }
}

@media (min-width: 992px) {
    /* Large devices (992px and up). Mixin: media-breakpoint-up(lg) */
    .navbar-expand-md .navbar-main .navbar-nav>.nav-item>.nav-link, .navbar-expand-md .navbar-main .navbar-nav>.nav-link, .navbar-expand-md.navbar-main .navbar-nav>.nav-item>.nav-link, .navbar-expand-md.navbar-main .navbar-nav>.nav-link{
        font-size: 19px;
    }
    .navbar-expand-md .navbar-main .navbar-nav.navbar-nav-simple>.nav-item>.nav-link, .navbar-expand-md .navbar-main .navbar-nav.navbar-nav-simple>.nav-link, .navbar-expand-md .navbar-main .navbar-nav.navbar-nav-stretch>.nav-item>.nav-link, .navbar-expand-md .navbar-main .navbar-nav.navbar-nav-stretch>.nav-link, .navbar-expand-md.navbar-main .navbar-nav.navbar-nav-simple>.nav-item>.nav-link, .navbar-expand-md.navbar-main .navbar-nav.navbar-nav-simple>.nav-link, .navbar-expand-md.navbar-main .navbar-nav.navbar-nav-stretch>.nav-item>.nav-link, .navbar-expand-md.navbar-main .navbar-nav.navbar-nav-stretch>.nav-link {
        padding: 5px 14px;
    }
    
    .navbar-expand-md .navbar-main.collapse .dropdown-menu .dropdown-item, .navbar-expand-md.navbar-main.collapse .dropdown-menu .dropdown-item {
        margin: 0;
        padding: 8px 12px !important;
        font-size: 14px;
        border-radius: 0;
        background: #fff;
        border-bottom: 1px solid #E6E6E6 !important;
        color: #1b1b1b;
    }
    
    .nav-section-menu .nav .nav-link, .nav-section-menu.nav .nav-link {
        font-size: 14px;
    }
  
}

@media (min-width: 1200px) {
  /* X-Large devices (1200px and up). Mixin: media-breakpoint-up(xl) */
}

/* max-width */
@media (max-width: 575.98px) {
    /* Small devices (575px and down). Mixin: media-breakpoint-down(xs) */
    
    /* Mobile 不顯示*/
    .mobile_device_not_show {
        display: none  !important;
    }
    
    /* 手機文字大小 */
    .font_size_mobile h2{
        font-size: 25px;
    }
    
    
    .cart-count {
        position: absolute;
        width: 25px;
        height: 25px;
        background: #fa0000;
        color: #FFF;
        display: block;
        border-radius: 50%;
        top: 10px;
        left: 100px;
        font-weight: 900;
        font-size: 10px;
        text-align: center;
        padding-top: 2px;
    }
    
    .header-brand .logo{
        width: 90%;
    }
    .header-brand{
        width: 75%;
    }
    .header-brand .header-brand-text{
      max-width: 88%;

    }
    
    .logo img {
        max-width: 75%;
        max-height: 120px;
    }
  
    .mainav_wrap {
        margin-bottom: 0;
        border-radius: 0;
        margin-left: calc(13% + 15px);
        border: 1px solid #ccc;
        border-left: 0;
        border: 0;
    }
    
    .search-wrap {
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        display: inline-block;

    }
    
    .search-wrap .input-group {
        -webkit-transition: 500ms -webkit-transform;
        transition: 500ms -webkit-transform;
        -o-transition: 500ms transform;
        transition: 500ms transform;
        transition: 500ms transform, 500ms -webkit-transform;
        position: relative;
        width: 130%;
        left: -71px;
        padding: 10px;
        background: #fff;
    }
        .search-wrap .search-txt {
        font-size: 16px;
    }
    
    /* 右側選單使用 */
    .cart-count_right {
        position: absolute;
        width: 25px;
        height: 25px;
        background: #fa0000;
        color: #FFF;
        display: block;
        border-radius: 50%;
        top: 59px;
        right: 22px;
        font-weight: 900;
        font-size: 10px;
        text-align: center;
        padding-top: 2px;
    }
}

@media (max-width: 767.98px) {
  /* Medium devices (767px and down). Mixin: media-breakpoint-down(sm) */
    
      .logo {
        margin-top: 0;
        height: 100%;
    }
    
    .toolbar {
        position: absolute;
        right: 0;
        top: 40px;
        width: 74%;
        display: none;
    }
    
    
}

@media (max-width: 991.98px) {
  /* Large devices (992px and down). Mixin: media-breakpoint-down(md) */
}

@media (max-width: 1199.98px) {
  /* X-Large devices (1200px and down). Mixin: media-breakpoint-down(lg) */
}

/* target one breakpoint */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Small devices (between 576px and 767px). Mixin: media-breakpoint-only(sm) */
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Medium devices (tablets, between 768px and 991px). Mixin: media-breakpoint-only(md) */
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Large devices (desktops, between 992px and 1199px). Mixin: media-breakpoint-only(lg) */
  
     .logo img {
        max-height: 90px;
    }
  
}

@media (min-width: 1200px) {
  /* Extra large devices (large desktops, 1200px and up). Mixin: media-breakpoint-only(xl) */
}

/* span multiple screenwidths */
@media (min-width: 768px) {
  /* From medium to large (between 768px and 1199px). Mixin: media-breakpoint-between(md, xl)  */
}

/*
 * --------------------------------------------------
 * 4. Misc
 * Other stuff
 *--------------------------------------------------
 */
