/* =========================================================================
   1. HEADER 基礎區域樣式
   ========================================================================= */
header {
    background-color: transparent;
    z-index: 100;
    position: relative;
}

.header-main-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.4s ease; 
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px 8px 35px;
    border-radius: 20px;
    border: 1px solid #e5e5e7;
    background-color: #f5f5f7;
    color: #333333;
    outline: none;
    font-size: 14px;
    transition: all 0.4s ease;
    width: 160px;
}

.search-box input:focus {
    width: 220px;
    border-color: #0071e3 !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.15);
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #86868b;
    transition: color 0.4s ease;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #1d1d1f;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.icon-btn i {
    display: inline-block;
    position: relative;
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease;
}

.icon-btn .badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #ff3b30;
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    z-index: 3;
}

.icon-btn.is-active-cart,
.icon-btn.is-active-member {
    color: #0071e3 !important;
}

/* LAVUMALL 前台 Header 圖片字標：加大展示，不影響 Favicon。 */
.header-main-row .logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}
.header-main-row .logo img {
    display: block;
    width: 205px !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 767px) {
    .header-main-row .logo img { width: 172px !important; }
}
@media (max-width: 380px) {
    .header-main-row .logo img { width: 152px !important; }
}
