/* ================================
   FREEFURRY HEADER
   ================================ */

.ff-header-wrapper {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ff-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP BAR ========== */
.ff-topbar {
    background: var(--topbar-bg, #d0011b);
    padding: var(--topbar-padding, 12px) 0;
    text-align: center;
}

.ff-topbar-text {
    color: var(--topbar-color, #ffffff);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

/* ========== MIDDLE HEADER ========== */
.ff-middle-header {
    background: var(--middle-bg, #ffffff);
    padding: var(--middle-padding, 25px) 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: var(--header-section-gap, 0);
}

.ff-middle-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Logo */
.ff-logo img,
.ff-logo .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.ff-logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    display: inline-block;
}

.ff-logo-text .logo-part-1 {
    color: #0a2540;
}

.ff-logo-text .logo-part-2 {
    color: #d0011b;
}

/* Search */
.ff-search {
    max-width: 700px;
    width: 100%;
    justify-self: center;
}

.ff-search-form {
    position: relative;
    display: flex;
}

.ff-search-input {
    width: 100%;
    padding: 14px 60px 14px 22px;
    background: #fdf2f2;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: 0.3s ease;
    font-family: inherit;
}

.ff-search-input:focus {
    background: #ffffff;
    border-color: #d0011b;
    box-shadow: 0 0 0 4px rgba(208, 1, 27, 0.1);
}

.ff-search-input::placeholder {
    color: #94a3b8;
}

.ff-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #d0011b;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.ff-search-btn:hover {
    background: #a80016;
    transform: translateY(-50%) scale(1.05);
}

/* Contact */
.ff-contact {
    display: flex;
    gap: 30px;
    align-items: center;
}

.ff-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff-contact-icon {
    color: #d0011b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ff-contact-title {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.ff-contact-value {
    font-size: 15px;
    color: #0f172a;
    font-weight: 800;
}

/* ========== NAV HEADER ========== */
.ff-nav-header {
    background: var(--nav-bg, #d0011b);
    padding: var(--nav-padding, 15px) 0;
    border-radius: var(--nav-border-radius, 0);
}

.ff-nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

/* Browse Categories */
.ff-browse-cat {
    position: relative;
}

.ff-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--browse-cat-bg, #0a2540);
    color: var(--browse-cat-color, #ffffff);
    border: none;
    border-radius: var(--browse-cat-radius, 0);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: inherit;
    min-width: 240px;
    justify-content: space-between;
}

.ff-browse-btn:hover {
    background: #163a5f;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.3);
}

.ff-browse-icon {
    display: flex;
    align-items: center;
}

.ff-browse-text {
    flex: 1;
    text-align: left;
}

.ff-browse-arrow {
    transition: transform 0.3s ease;
}

.ff-browse-btn.active .ff-browse-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.ff-browse-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.ff-browse-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ff-cat-list {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.ff-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.ff-cat-list li a:hover {
    background: #fef2f2;
    color: #d0011b;
    padding-left: 25px;
}

.ff-cat-count {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

/* Main Menu */
.ff-main-menu {
    display: flex;
    justify-content: center;
}

.ff-menu-list {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.ff-menu-list li {
    position: relative;
}

.ff-menu-list li a {
    display: inline-block;
    padding: 10px 18px;
    color: var(--nav-text-color, #ffffff);
    font-size: var(--nav-menu-font-size, 15px);
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: 0.3s ease;
}

.ff-menu-list li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ff-menu-list li.current-menu-item a,
.ff-menu-list li.current_page_item a {
    background: #ffffff;
    color: #d0011b;
}

/* Header Icons */
.ff-header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ff-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    background: #0a2540;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s ease;
}

.ff-icon-btn:hover {
    background: #ffffff;
    color: #d0011b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ff-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #ffffff;
    color: #d0011b;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d0011b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .ff-contact {
        gap: 20px;
    }
    
    .ff-contact-value {
        font-size: 13px;
    }
    
    .ff-browse-btn {
        min-width: 200px;
        padding: 12px 18px;
    }
    
    .ff-menu-list li a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .ff-middle-inner {
        grid-template-columns: 1fr auto;
        gap: 20px;
    }
    
    .ff-search {
        grid-column: 1 / -1;
        order: 3;
    }
    
    .ff-nav-inner {
        grid-template-columns: 1fr auto;
    }
    
    .ff-main-menu {
        display: none;
    }
    
    .ff-browse-btn {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .ff-container {
        padding: 0 15px;
    }
    
    .ff-contact {
        display: none;
    }
    
    .ff-logo img,
    .ff-logo .custom-logo {
        max-height: 40px;
    }
    
    .ff-topbar-text {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    
    .ff-icon-btn {
        width: 38px;
        height: 38px;
    }
}