/* Dayco header styles. Load in the order defined by includes/styles.php. */ /* Header */
header {
    background: var(--white);
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
}
header nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    position: relative;
    flex-wrap: wrap;
}
header .logo {
    flex-shrink: 0;
}
header .logo img {
    height: 45px;
    transition: transform 0.2s;
}
header .logo:hover img {
    transform: scale(1.02);
} /* Arama Kutusu */
.search-box {
    position: relative;
    flex: 0 1 280px;
    min-width: 200px;
}
.search-form {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 8px;
    border: 1px solid #e5e8ef;
    overflow: hidden;
    transition: all 0.2s ease;
}
.search-form:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.1);
}
.search-form input {
    flex: 1;
    border: none;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    color: var(--dark-text);
}
.search-form input::placeholder {
    color: #999;
}
.search-btn {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.search-btn:hover {
    background: var(--primary-red);
} /* Nav Menu */
header ul,
header .nav-menu {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: center;
}
header ul li,
header .nav-menu li {
    display: inline-block;
}
header ul a,
header .nav-menu a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
header ul a:hover,
header .nav-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-red);
}
header ul a.active,
header .nav-menu a.active {
    color: var(--primary-red);
    background: rgba(230, 57, 70, 0.08);
}
header .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}
header .header-cta i {
    font-size: 1.1rem;
} /* Mobil Butonlar Wrapper */
.header-mobile-buttons {
    display: none;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
} /* Mobil Arama Butonu */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.mobile-search-btn:hover,
.mobile-search-btn.active {
    background: var(--light-gray);
    color: var(--primary-red);
} /* Mobil Menü Butonu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.mobile-menu-btn:hover {
    background: var(--light-gray);
}
.mobile-menu-btn.active i:before {
    content: "\f00d"; /* X ikonu */
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    border: 1px solid #e5e8ef;
}
.search-results.active {
    display: block;
}
.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-results li {
    border-bottom: 1px solid #f0f0f0;
}
.search-results li:last-child {
    border-bottom: none;
}
.search-results li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark-text);
    transition: background 0.2s;
}
.search-results li a:hover {
    background: #f8fafc;
}
.search-results li img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 4px;
    flex-shrink: 0;
}
.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.search-result-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-brand {
    font-size: 0.75rem;
    color: #888;
}
.search-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), #1a5a8a);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0 0 10px 10px;
}
.search-all-link:hover {
    background: linear-gradient(135deg, #1a5a8a, var(--primary-blue));
    color: white;
}
.search-all-link::after {
    content: "→";
    font-weight: bold;
}
.search-results .no-results {
    padding: 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}
