/* ESTILOS DEL HEADER */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0; /* Más compacto */
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; /* Más espacio entre logo y buscador */
}

.header-logo {
    display: flex;
    align-items: center;
    min-width: 220px;
}

.header-logo .main-logo {
    max-height: 70px; /* Tamaño equilibrado */
    width: auto;
    object-fit: contain;
}

.header-search {
    flex: 1;
    max-width: 700px; /* Buscador más largo */
    display: flex;
    position: relative;
    background-color: var(--white);
    border-radius: 4px;
    border: none;
}

.header-search input {
    flex-grow: 1;
    border: none;
    padding: 10px 20px;
    outline: none;
    font-size: 1.1rem;
    border-radius: 4px 0 0 4px;
    color: #333;
}

.header-search button {
    background-color: #222; /* Negro como en la imagen */
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* Búsqueda en tiempo real */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.search-item:hover {
    background: #f9f9f9;
}

.search-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
}

.search-item-info {
    display: flex;
    flex-direction: column;
}

.search-item-info .name {
    font-weight: bold;
    font-size: 14px;
}

.search-item-info .cat {
    font-size: 12px;
    color: #777;
}

.search-results-dropdown .price .old-price-search {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85em;
    margin-right: 5px;
}

.search-results-dropdown .price .new-price-search {
    color: #DC1F27;
    font-weight: bold;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-quote-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #111;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.2px;
    transition: transform 0.05s ease, opacity 0.2s ease;
}

.header-quote-btn:hover {
    opacity: 0.95;
}

.header-quote-btn:active {
    transform: translateY(1px);
}

.header-quote-btn i {
    font-size: 1.15rem;
    color: var(--primary-color);
}

.header-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.header-action-item i {
    font-size: 1.2rem;
}

.cart-item {
    gap: 15px;
}

.cart-price {
    font-weight: bold;
}

.cart-icon-container {
    position: relative;
}

.cart-icon-container i {
    font-size: 1.5rem;
}

.cart-icon-container .count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #333;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
