/* ===================================
   Header Inline Styles - Optimized
   从header.php提取的内联样式
   =================================== */

/* 强制移除所有深色边框 */
* {
    outline: none !important;
}

.product-card,
.product-card:hover,
.product-card:active,
.product-card:focus,
.product-card:focus-within,
.product-card:focus-visible,
.product-card:visited,
.product-card.selected,
.product-card * {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
}

a,
a:hover,
a:active,
a:focus,
a:visited {
    outline: none !important;
}

/* Header Top Bar */
.header-top-bar {
    background: #fff;
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.header-top-bar-inner {
    color: #333;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.header-contact-item:hover {
    color: #0066cc;
}

.header-contact-item svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    outline: none;
    margin-left: auto;
    margin-right: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.mobile-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-sidebar-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    font-size: 24px;
}

.mobile-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-sidebar-item {
    margin: 0;
    padding: 0;
}

.mobile-sidebar-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    outline: none;
}

.mobile-sidebar-link.has-dropdown::after {
    content: '+';
    float: right;
    font-size: 18px;
    font-weight: 600;
}

.mobile-sidebar-item.open .mobile-sidebar-link.has-dropdown::after {
    content: '-';
}

.mobile-sidebar-submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}

.mobile-sidebar-item.open .mobile-sidebar-submenu {
    display: block;
}

.mobile-sidebar-submenu-link {
    display: block;
    padding: 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    outline: none;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Featured Products Sidebar */
.featured-products-list {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.featured-product-item {
    display: flex !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.featured-product-item:last-child {
    border-bottom: none !important;
}

.featured-product-item:hover {
    box-shadow: none !important;
    transform: none !important;
    border-color: #f0f0f0 !important;
    background: #ffffff !important;
}


.featured-product-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    justify-content: center !important;
}

.featured-product-info h4 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.featured-product-info h4 a {
    color: #333333 !important;
    text-decoration: none !important;
}

.featured-product-info h4 a:hover {
    color: #2563eb !important;
}

.btn-more {
    display: inline-block !important;
    background: #dc2626 !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: none !important;
}

.btn-more:hover {
    background: #b91c1c !important;
    color: white !important;
}

/* Responsive */
@media (max-width: 992px) {
    .custom-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}